mirror of
https://github.com/zitadel/zitadel.git
synced 2025-08-12 04:37:31 +00:00
chore: move the go code into a subfolder
This commit is contained in:
14
apps/api/internal/eventstore/handler/init.go
Normal file
14
apps/api/internal/eventstore/handler/init.go
Normal file
@@ -0,0 +1,14 @@
|
||||
package handler
|
||||
|
||||
import "context"
|
||||
|
||||
// Init initializes the projection with the given check
|
||||
type Init func(context.Context, *Check) error
|
||||
|
||||
type Check struct {
|
||||
Executes []func(ctx context.Context, executer Executer, projectionName string) (bool, error)
|
||||
}
|
||||
|
||||
func (c *Check) IsNoop() bool {
|
||||
return len(c.Executes) == 0
|
||||
}
|
Reference in New Issue
Block a user