1
0
Fork 0

feat: initial release

This commit is contained in:
Arthur K. 2026-01-17 18:14:50 +03:00
parent a3cf21f5bd
commit 1e0ee5bffe
Signed by: wzray
GPG key ID: B97F30FDC4636357
40 changed files with 2007 additions and 217 deletions

21
internal/roles/role.go Normal file
View file

@ -0,0 +1,21 @@
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 }