config

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: Unlicense Imports: 4 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),
	)
)

Functions

func NewConfigurator

func NewConfigurator() config.Configurator

NewConfigurator for config.

Types

type Config

type Config struct {
	VCS           vcs.Config `yaml:"vcs"`
	config.Config `yaml:",inline"`
}

Config for the service.

func (*Config) Unmarshal

func (cfg *Config) Unmarshal(bytes []byte) error

Jump to

Keyboard shortcuts

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