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:
47
apps/api/internal/domain/execution.go
Normal file
47
apps/api/internal/domain/execution.go
Normal file
@@ -0,0 +1,47 @@
|
||||
package domain
|
||||
|
||||
type ExecutionType uint
|
||||
|
||||
func (s ExecutionType) Valid() bool {
|
||||
return s < executionTypeStateCount
|
||||
}
|
||||
|
||||
const (
|
||||
ExecutionTypeUnspecified ExecutionType = iota
|
||||
ExecutionTypeRequest
|
||||
ExecutionTypeResponse
|
||||
ExecutionTypeFunction
|
||||
ExecutionTypeEvent
|
||||
|
||||
executionTypeStateCount
|
||||
)
|
||||
|
||||
func (e ExecutionType) String() string {
|
||||
switch e {
|
||||
case ExecutionTypeUnspecified, executionTypeStateCount:
|
||||
return ""
|
||||
case ExecutionTypeRequest:
|
||||
return "request"
|
||||
case ExecutionTypeResponse:
|
||||
return "response"
|
||||
case ExecutionTypeFunction:
|
||||
return "function"
|
||||
case ExecutionTypeEvent:
|
||||
return "event"
|
||||
}
|
||||
return ""
|
||||
}
|
||||
|
||||
type ExecutionTargetType uint
|
||||
|
||||
func (s ExecutionTargetType) Valid() bool {
|
||||
return s < executionTargetTypeStateCount
|
||||
}
|
||||
|
||||
const (
|
||||
ExecutionTargetTypeUnspecified ExecutionTargetType = iota
|
||||
ExecutionTargetTypeInclude
|
||||
ExecutionTargetTypeTarget
|
||||
|
||||
executionTargetTypeStateCount
|
||||
)
|
Reference in New Issue
Block a user