mirror of
				https://github.com/zitadel/zitadel.git
				synced 2025-11-03 19:53:10 +00:00 
			
		
		
		
	* 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
 | 
						|
}
 |