fxparams

package
v0.0.0-...-ae8e89f Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = fx.Options(
	fx.Provide(func(config *config.Config, logger *zap.Logger, metrics tally.Scope) Params {
		rand.Seed(time.Now().UnixNano())
		return Params{
			Config:  config,
			Logger:  logger,
			Metrics: metrics,
		}
	}),
)

Functions

This section is empty.

Types

type Params

type Params struct {
	Config  *config.Config
	Logger  *zap.Logger
	Metrics tally.Scope
}

Params provide the common dependencies. Usage:

MyParams struct {
  fx.In
  fxparams.Params
  ...
}

Jump to

Keyboard shortcuts

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