config

package
v1.10.3 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2022 License: Unlicense Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Module for fx.
	Module = fx.Options(ConfiguratorModule, config.UnmarshalModule, ConfigModule)

	// ConfiguratorModule for fx.
	ConfiguratorModule = fx.Provide(NewConfigurator)

	// ConfigModule for fx.
	ConfigModule = fx.Options(
		config.ConfigModule,
		fx.Provide(vcsConfig),
		fx.Provide(clientConfig),
		fx.Provide(env.NewTransformer),
		fx.Provide(vault.NewConfig),
		fx.Provide(vault.NewClient),
		fx.Provide(vault.NewTransformer),
		fx.Provide(NewTransformer),
		fx.Provide(provider.NewTransformer),
	)
)

Functions

func NewConfigurator

func NewConfigurator() config.Configurator

NewConfigurator for config.

Types

type Config

type Config struct {
	Server        server.Config `yaml:"server"`
	Client        client.Config `yaml:"client"`
	config.Config `yaml:",inline"`
}

Config for the service.

type Transformer added in v1.7.0

type Transformer struct {
	// contains filtered or unexported fields
}

Transformer for config.

func NewTransformer added in v1.7.0

func NewTransformer(pt *provider.Transformer) *Transformer

NewTransformer for config.

func (*Transformer) Transform added in v1.7.0

func (t *Transformer) Transform(ctx context.Context, bytes []byte) ([]byte, error)

Transform config.

Directories

Path Synopsis
env

Jump to

Keyboard shortcuts

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