Documentation
¶
Index ¶
- func AddInfrastructure(svc service.Service)
- func AddPreStartHook(fn func() PreStartHook)
- func AddPreStartHookType[T any, P interface{ ... }]()
- func AddService(svc service.Service)
- func AllInfrastructure() []service.Service
- func AllServices() []service.Service
- func ServiceByName(name string) service.Service
- func Start(ctx context.Context, opts ...any) error
- func StartServices(ctx context.Context, kind string, svcs ...service.Service) error
- func Stop(ctx context.Context, includeInfrastructure bool, exclude []string) error
- func StopServices(ctx context.Context, svcs ...service.Service) error
- type PreStartHook
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddInfrastructure ¶
func AddPreStartHook ¶
func AddPreStartHook(fn func() PreStartHook)
func AddPreStartHookType ¶
func AddPreStartHookType[T any, P interface { *T PreStartHook }]()
func AddService ¶
func AllInfrastructure ¶
func AllServices ¶
func ServiceByName ¶
ServiceByName returns the service with the given name, if it exists.
If the service does not exist, it returns nil.
func Start ¶
Start starts the stack with the given options.
Options must be of type service.ContextOption or resource.ContextOption, and will be passed to service.NewContext and resource.NewContext respectively.
func StartServices ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.