zitadel/internal/eventstore/handler/init.go

15 lines
291 B
Go
Raw Normal View History

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
}