config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2025 License: MIT Imports: 13 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 {
	Server ServerConfig `mapstructure:"server"`

	Proxy  router.Proxy   `mapstructure:"proxy"`
	Routes []router.Route `mapstructure:"routes"`

	Log LogConfig `mapstructure:"log"`

	Timeout time.Duration `mapstructure:"timeout"`
}

func Load

func Load(args []string) *Config

type LogConfig

type LogConfig struct {
	Level log.Level `mapstructure:"level"`
}

type ServerConfig

type ServerConfig struct {
	Proto proxy.Proto `mapstructure:"proto"`
	Addr  addr.Addr   `mapstructure:"addr"`
}

Jump to

Keyboard shortcuts

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