mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 19:14:23 +00:00
fb3c6f791b
* feat: add projections and query side to executions and targets * feat: add list and get endpoints for targets * feat: add integration tests for query endpoints target and execution * fix: linting * fix: linting * fix: review changes, renames and corrections * fix: review changes, renames and corrections * fix: review changes, renames and corrections * fix: review changes, renames and corrections * fix: review changes, renames and corrections * fix: review changes, renames and corrections * fix: remove position from list details
26 lines
403 B
Go
26 lines
403 B
Go
package domain
|
|
|
|
type TargetType uint
|
|
|
|
const (
|
|
TargetTypeWebhook TargetType = iota
|
|
TargetTypeRequestResponse
|
|
)
|
|
|
|
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
|
|
}
|