mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 07:57:32 +00:00
chore: move the go code into a subfolder
This commit is contained in:
26
apps/api/internal/domain/target.go
Normal file
26
apps/api/internal/domain/target.go
Normal file
@@ -0,0 +1,26 @@
|
||||
package domain
|
||||
|
||||
type TargetType uint
|
||||
|
||||
const (
|
||||
TargetTypeWebhook TargetType = iota
|
||||
TargetTypeCall
|
||||
TargetTypeAsync
|
||||
)
|
||||
|
||||
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
|
||||
}
|
Reference in New Issue
Block a user