config

package
v0.0.0-...-bd7bb7a Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2023 License: AGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Host           string   `mapstructure:"host"`
	Port           uint     `mapstructure:"port"`
	IsBehindProxy  bool     `mapstructure:"behind_proxy"`
	TrustedProxies []string `mapstructure:"trusted_proxies"`
}

type Config

type Config struct {
	Application Application `mapstructure:"application"`
	Server      Server      `mapstructure:"server"`
}

func New

func New() (*Config, error)

type Server

type Server struct {
	Type   string `mapstructure:"type"`
	LogDir string `mapstructure:"log_dir"`
}

Jump to

Keyboard shortcuts

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