mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-13 11:34:26 +00:00
15 lines
290 B
Go
15 lines
290 B
Go
|
package handler
|
||
|
|
||
|
import "context"
|
||
|
|
||
|
//Init initializes the projection with the given check
|
||
|
type Init func(context.Context, *Check) error
|
||
|
|
||
|
type Check struct {
|
||
|
Executes []func(ex Executer, projectionName string) (bool, error)
|
||
|
}
|
||
|
|
||
|
func (c *Check) IsNoop() bool {
|
||
|
return len(c.Executes) == 0
|
||
|
}
|