config

package
v0.0.0-...-8ffcee5 Latest Latest
Warning

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

Go to latest
Published: May 24, 2024 License: MIT Imports: 2 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Pretty bool              `json:"pretty" yaml:"pretty" mapstructure:"pretty"`
	Level  string            `json:"level" yaml:"level" mapstructure:"level"`
	With   map[string]string `json:"with" yaml:"with" mapstructure:"with"`
}

func New

func New(provider configuration.Provider) (*Config, error)

func (*Config) Validate

func (conf *Config) Validate() error

type Wrapper

type Wrapper struct {
	Logger Config `json:"logger" yaml:"logger" mapstructure:"logger"`
}

func (*Wrapper) Validate

func (conf *Wrapper) Validate() error

Jump to

Keyboard shortcuts

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