config

package
v1.0.5 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Auth       auth.Config       `mapstructure:"auth"`
	Controller controller.Config `mapstructure:"controller"`
	Postgres   postgres.Config   `mapstructure:"postgres"`
	Worker     worker.Config     `mapstructure:"worker"`
}

func Load

func Load() (*Config, error)

func (*Config) Bind

func (c *Config) Bind()

func (*Config) Validate

func (c *Config) Validate() error

type Validator

type Validator interface {
	Bind()
	Validate() error
}

Jump to

Keyboard shortcuts

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