Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrRoleNotConfigured = errors.New("role: Not configured")
Functions ¶
func Register ¶ added in v0.17.1
func Register(name string, constructor RoleConstructor)
Types ¶
type Event ¶
type Event struct { Context context.Context Payload EventPayload // contains filtered or unexported fields }
type EventHandler ¶
type EventHandler func(ev *Event)
type EventPayload ¶
type HookOptions ¶ added in v0.10.0
type Instance ¶
type Instance interface { KV() *storage.Client Log() *zap.Logger DispatchEvent(topic string, ev *Event) AddEventListener(topic string, handler EventHandler) Context() context.Context ExecuteHook(HookOptions, ...interface{}) Migrator() RoleMigrator }
type MigratableRole ¶ added in v0.16.0
type MigratableRole interface { Role RegisterMigrations() }
type RoleConstructor ¶ added in v0.17.1
func GetRole ¶ added in v0.17.1
func GetRole(name string) RoleConstructor
Click to show internal directories.
Click to hide internal directories.