Documentation
¶
Index ¶
- func Decorate(decorators ...any) opt.Option[app.Module]
- func Handlers(handlerProviders ...any) opt.Option[app.Module]
- func Private(providers ...any) opt.Option[app.Module]
- func Public(providers ...any) opt.Option[app.Module]
- func Service[T any]() opt.Option[app.Module]
- func SubModules(modules ...func() app.Module) opt.Option[app.Module]
- func Supply(suppliers ...any) opt.Option[app.Module]
- type HealthCheck
- type HealthCheckManifest
- type OnStart
- type OnStartStop
- type OnStop
- type ServiceRegistry
- type ServiceRegistryParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type HealthCheck ¶ added in v0.6.5
type HealthCheck interface { OnStartStop Inspect() HealthCheckManifest }
type HealthCheckManifest ¶ added in v0.6.5
type OnStartStop ¶
type ServiceRegistry ¶ added in v0.6.5
type ServiceRegistry struct {
// contains filtered or unexported fields
}
func NewServiceRegistry ¶ added in v0.6.5
func NewServiceRegistry(params ServiceRegistryParams) (*ServiceRegistry, error)
func (*ServiceRegistry) OnStart ¶ added in v0.6.5
func (s *ServiceRegistry) OnStart(context.Context) error
func (*ServiceRegistry) OnStop ¶ added in v0.6.5
func (s *ServiceRegistry) OnStop(context.Context) error
func (*ServiceRegistry) RestartService ¶ added in v0.6.5
func (s *ServiceRegistry) RestartService(ctx context.Context, name string) error
type ServiceRegistryParams ¶ added in v0.6.5
type ServiceRegistryParams struct { fx.In Services []HealthCheck Manifest *manifest.Manifest }
Click to show internal directories.
Click to hide internal directories.