mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-18 05:47:32 +00:00
29 lines
449 B
Go
29 lines
449 B
Go
|
package domain
|
||
|
|
||
|
type TargetType uint
|
||
|
|
||
|
const (
|
||
|
TargetTypeUnspecified TargetType = iota
|
||
|
TargetTypeWebhook
|
||
|
TargetTypeRequestResponse
|
||
|
|
||
|
TargetTypeStateCount
|
||
|
)
|
||
|
|
||
|
type TargetState int32
|
||
|
|
||
|
const (
|
||
|
TargetUnspecified TargetState = iota
|
||
|
TargetActive
|
||
|
TargetRemoved
|
||
|
targetStateCount
|
||
|
)
|
||
|
|
||
|
func (s TargetState) Valid() bool {
|
||
|
return s >= 0 && s < targetStateCount
|
||
|
}
|
||
|
|
||
|
func (s TargetState) Exists() bool {
|
||
|
return s != TargetUnspecified && s != TargetRemoved
|
||
|
}
|