mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 06:07:33 +00:00
chore: move the go code into a subfolder
This commit is contained in:
23
apps/api/internal/domain/instance.go
Normal file
23
apps/api/internal/domain/instance.go
Normal file
@@ -0,0 +1,23 @@
|
||||
package domain
|
||||
|
||||
const (
|
||||
IAMID = "IAM"
|
||||
)
|
||||
|
||||
type InstanceState int32
|
||||
|
||||
const (
|
||||
InstanceStateUnspecified InstanceState = iota
|
||||
InstanceStateActive
|
||||
InstanceStateRemoved
|
||||
|
||||
instanceStateCount
|
||||
)
|
||||
|
||||
func (s InstanceState) Valid() bool {
|
||||
return s >= 0 && s < instanceStateCount
|
||||
}
|
||||
|
||||
func (s InstanceState) Exists() bool {
|
||||
return s != InstanceStateUnspecified && s != InstanceStateRemoved
|
||||
}
|
Reference in New Issue
Block a user