mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-12 11:04:25 +00:00
1c5ecba42a
* feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: add execution of targets to grpc calls * feat: split request and response logic to handle the different context information * feat: split request and response logic to handle the different context information * fix: integration test * fix: import alias * fix: refactor execution package * fix: refactor execution interceptor integration and unit tests * fix: refactor execution interceptor integration and unit tests * fix: refactor execution interceptor integration and unit tests * fix: refactor execution interceptor integration and unit tests * fix: refactor execution interceptor integration and unit tests * docs: basic documentation for executions and targets * fix: change order for interceptors * fix: merge back origin/main * fix: change target definition command and query side (#7735) * fix: change target definition command and query side * fix: correct refactoring name changes * fix: correct refactoring name changes * fix: changing execution defintion with target list and type * fix: changing execution definition with target list and type * fix: add back search queries for target and include * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * fix: projections change for execution with targets suffix table * docs: add example to actions v2 * docs: add example to actions v2 * fix: correct integration tests on query for executions * fix: add separate event for execution v2 as content changed * fix: add separate event for execution v2 as content changed * fix: added review comment changes * fix: added review comment changes * fix: added review comment changes --------- Co-authored-by: adlerhurst <silvan.reusser@gmail.com> * fix: added review comment changes * fix: added review comment changes * Update internal/api/grpc/server/middleware/execution_interceptor.go Co-authored-by: Silvan <silvan.reusser@gmail.com> * fix: added review comment changes * fix: added review comment changes * fix: added review comment changes * fix: added review comment changes * fix: added review comment changes * fix: added review comment changes --------- Co-authored-by: adlerhurst <silvan.reusser@gmail.com> Co-authored-by: Elio Bischof <elio@zitadel.com>
48 lines
893 B
Go
48 lines
893 B
Go
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
|
|
)
|