Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Launcher ¶
type Launcher struct {
// contains filtered or unexported fields
}
func NewLauncher ¶
func NewLauncher(name string, specs ...ServiceSpec) (l *Launcher, err error)
type ServiceInitFunc ¶
type ServiceInitFunc[T service.Service] func(svc T) ([]server.StartGRPCServerOption, error)
type ServiceSpec ¶
type ServiceSpec interface {
NewService(db persistence.Storage) (svc service.Service, grpcOpts []server.StartGRPCServerOption, err error)
}
ServiceSpec is an interface we need because of generics foo.
func NewServiceSpec ¶
func NewServiceSpec[T service.Service](nsf NewServiceFunc[T], wsf WithStorageFunc[T], init ServiceInitFunc[T], opts ...service.Option[T]) ServiceSpec
type WithStorageFunc ¶
Click to show internal directories.
Click to hide internal directories.