Documentation ¶
Index ¶
- Constants
- type Template
- func (t *Template[ConfigType]) AddCloseFunctions(closeFunctions ...callback.FunctionWithError)
- func (t *Template[ConfigType]) AddHealthcheckFunctions(healthCheckFunctions ...callback.FunctionWithContextError)
- func (t *Template[ConfigType]) ConfigCopy() ConfigType
- func (t *Template[ConfigType]) Context() context.Context
- func (t *Template[ConfigType]) HealthcheckFunctionsExecutor() func(context.Context) error
- func (t *Template[ConfigType]) Logger() log.Logger
- func (t *Template[ConfigType]) Meter() metrics.Meter
- func (t *Template[ConfigType]) Name() string
- func (t *Template[ConfigType]) ReadConfig(filepath string) error
- func (t *Template[ConfigType]) Run() error
- func (t *Template[ConfigType]) Start() error
- func (t *Template[ConfigType]) Stop() error
- func (t *Template[ConfigType]) Tracer() tracing.Tracer
- func (t *Template[ConfigType]) Version() string
Constants ¶
View Source
const ( RunFunctionMessageStart = "run service" RunFunctionMessageExitBySignal = "exit" )
View Source
const ( StopFunctionMessageIsStopping = "service is stopping..." StopFunctionExecutionWarning = "executing stopping function" StopFunctionMessageFinished = "service has stopped" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Template ¶
type Template[ConfigType config.WithValidation] struct { // contains filtered or unexported fields }
func NewTemplate ¶
func (*Template[ConfigType]) AddCloseFunctions ¶
func (t *Template[ConfigType]) AddCloseFunctions(closeFunctions ...callback.FunctionWithError)
func (*Template[ConfigType]) AddHealthcheckFunctions ¶
func (t *Template[ConfigType]) AddHealthcheckFunctions(healthCheckFunctions ...callback.FunctionWithContextError)
func (*Template[ConfigType]) ConfigCopy ¶
func (t *Template[ConfigType]) ConfigCopy() ConfigType
func (*Template[ConfigType]) HealthcheckFunctionsExecutor ¶
func (*Template[ConfigType]) ReadConfig ¶
Click to show internal directories.
Click to hide internal directories.