1
0
Fork 0
hivemind/internal/roles/role.go
2026-01-18 19:38:54 +03:00

21 lines
410 B
Go

package roles
import (
"context"
"git.wzray.com/homelab/mastermind/internal/types"
)
type Role interface {
RegisterHandlers(types.Registrator)
OnStartup(context.Context) error
OnShutdown() error
}
type BaseRole struct{}
func (r *BaseRole) RegisterHandlers(types.Registrator) {}
func (r *BaseRole) OnStartup(context.Context) error { return nil }
func (r *BaseRole) OnShutdown() error { return nil }