Versions in this module Expand all Collapse all v1 v1.1.2 Dec 6, 2023 v1.1.1 May 17, 2023 Changes in this version + func CreateLogger(c *cli.Context, conf config.Type, streamsMode bool) (logger log.Modular, err error) + func DelayShutdown(ctx context.Context, duration time.Duration) error + func ReadConfig(c *cli.Context, streamsMode bool) (mainPath string, inferred bool, conf *config.Reader) + func RunManagerUntilStopped(c *cli.Context, conf config.Type, stopMgr *StoppableManager, ...) int + func RunService(c *cli.Context, version, dateBuilt string, streamsMode bool) int + type Stoppable interface + Stop func(ctx context.Context) error + func CombineStoppables(stoppables ...Stoppable) Stoppable + type StoppableManager struct + func CreateManager(c *cli.Context, logger log.Modular, streamsMode bool, ...) (stoppableMgr *StoppableManager, err error) + func (s *StoppableManager) API() *api.Type + func (s *StoppableManager) Manager() *manager.Type + func (s *StoppableManager) Stop(ctx context.Context) error + type SwappableStopper struct + func NewSwappableStopper(s Stoppable) *SwappableStopper + func (s *SwappableStopper) Replace(ctx context.Context, fn func() (Stoppable, error)) error + func (s *SwappableStopper) Stop(ctx context.Context) error