1
0
Fork 0
hivemind/internal/roles/role.go

21 lines
408 B
Go

package roles
import (
"context"
"git.wzray.com/homelab/hivemind/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 }