Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Module = fx.Module("dependencies", fx.Provide(log.New), fx.Provide(db.NewEntClient), fx.Provide(NewHttpClient), fx.Provide(NewExecutors), fx.Invoke(func(lc fx.Lifecycle, executor executors.ScheduledExecutor) { lc.Append(fx.Hook{ OnStop: func(ctx context.Context) error { return executor.Shutdown(ctx) }, }) }), )
Functions ¶
func NewExecutors ¶
func NewExecutors(logger *log.Logger) executors.ScheduledExecutor
func NewHttpClient ¶
func NewHttpClient(params NewHttpClientParams) *httpclient.HttpClient
Types ¶
type ErrorHandler ¶
type ErrorHandler struct{}
func (*ErrorHandler) CatchError ¶
func (h *ErrorHandler) CatchError(runnable executors.Runnable, err error)
type NewHttpClientParams ¶
Click to show internal directories.
Click to hide internal directories.