config

package
v0.0.0-...-a423d60 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddPFlags

func AddPFlags(set *pflag.FlagSet)

Types

type Config

type Config struct {
	Server        *server.Config  `mapstructure:"server"`
	Log           *log.Config     `mapstructure:"log"`
	HttpClient    *http.Config    `mapstructure:"http_client"`
	GraphQLClient *graphql.Config `mapstructure:"graphql_client"`
	OAuthProvider *oauth.Config   `mapstructure:"oauth_provider"`
	ORD           *ord.Config     `mapstructure:"ord"`
	Metrics       *metrics.Config `mapstructure:"metrics"`
}

func DefaultConfig

func DefaultConfig() *Config

func New

func New(env env.Environment) (*Config, error)

func (*Config) Validate

func (c *Config) Validate() error

type Validatable

type Validatable interface {
	Validate() error
}

Jump to

Keyboard shortcuts

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