2022-10-28 18:19:55 -04:00
|
|
|
package blas
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
2022-12-19 19:24:01 -05:00
|
|
|
"dynatron.me/x/blasphem/pkg/auth"
|
2022-10-28 18:19:55 -04:00
|
|
|
"dynatron.me/x/blasphem/pkg/bus"
|
|
|
|
"dynatron.me/x/blasphem/pkg/config"
|
|
|
|
"dynatron.me/x/blasphem/pkg/storage"
|
|
|
|
)
|
|
|
|
|
2022-12-19 19:24:01 -05:00
|
|
|
type Core interface {
|
|
|
|
auth.Authenticator
|
|
|
|
bus.Bus
|
|
|
|
storage.Store
|
|
|
|
config.Configured
|
|
|
|
Shutdowner
|
|
|
|
Versioner
|
|
|
|
}
|
|
|
|
|
|
|
|
type Shutdowner interface {
|
2022-12-20 13:16:30 -05:00
|
|
|
ShutdownBlas(context.Context) error
|
2022-12-19 19:24:01 -05:00
|
|
|
}
|
|
|
|
|
|
|
|
type Versioner interface {
|
|
|
|
Version() string
|
|
|
|
}
|