Versions in this module Expand all Collapse all v1 v1.0.1 Sep 18, 2024 v1.0.0 May 17, 2024 Changes in this version + type BaseService struct + func NewBaseService(logger log.Logger, name string, impl Implementation) *BaseService + func (bs *BaseService) IsRunning() bool + func (bs *BaseService) Start(ctx context.Context) error + func (bs *BaseService) Stop() + func (bs *BaseService) String() string + func (bs *BaseService) Wait() + type Implementation interface + OnStart func(context.Context) error + OnStop func() + type Service interface + IsRunning func() bool + Start func(context.Context) error + Stop func() + Wait func()