service

package
v0.0.0-...-fde55f4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 23, 2024 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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

func (s *Service) BuildConfig(filetype string, filepath string, cfg interface{}) error

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

func (s *Service) GracefulShutdown(ctx context.Context) error

Sequentially calls GracefulShutdown on every use case, then on every data service, then on ApiManager.

func (*Service) LoadEnvVars

func (s *Service) LoadEnvVars(filetype string, filepath string) error

Calls config.LoadEnvVars

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL