Documentation
¶
Index ¶
- type Service
- func (s *Service) BuildConfig(filetype string, filepath string, cfg interface{}) error
- func (s *Service) EnableLogger(cfg mlog.Config, errorStackMarshaller mlog.ErrorStackMarshaler, ...) zerolog.Logger
- func (s *Service) GracefulShutdown(ctx context.Context) error
- func (s *Service) LoadEnvVars(filetype string, filepath string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Config interface{}
Container container.Container
DataStoreManager datastore.DataStoreManager
DataServiceManager dataservice.DataServiceManager
UseCaseManager usecase.UseCaseManager
ApiManager api.ApiManager
}
func NewService ¶
func NewService() *Service
func (*Service) BuildConfig ¶
Calls config.BuildConfig and stores the configuration in Config field
func (*Service) EnableLogger ¶
func (s *Service) EnableLogger(cfg mlog.Config, errorStackMarshaller mlog.ErrorStackMarshaler, additionnalWriters ...io.Writer) zerolog.Logger
Calls mlog.Init
func (*Service) GracefulShutdown ¶
Sequentially calls GracefulShutdown on every use case, then on every data service, then on ApiManager.
func (*Service) LoadEnvVars ¶
Calls config.LoadEnvVars
Click to show internal directories.
Click to hide internal directories.