config

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2023 License: MIT Imports: 1 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 {
	LocalAddress     string   `toml:"Local_address"`
	RemoteAddress    string   `toml:"Remote_address"`
	Timeout          int      `toml:"Timeout"`
	MotdGetInterval  int      `toml:"Motd_get_interval"`
	UseApiServer     bool     `toml:"Use_api_server"`
	ApiServerAddress string   `toml:"Api_server_address"`
	ApiWhitelist     []string `toml:"Api_whitelist"`
}

func New

func New(filename string) (*Config, error)

Jump to

Keyboard shortcuts

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