config

package
v0.0.0-...-69f6661 Latest Latest
Warning

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

Go to latest
Published: Dec 7, 2021 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCredentials

func GetCredentials() map[string]string

func GetDebug

func GetDebug() bool

func GetDomainSuffix

func GetDomainSuffix() string

func GetRpcSecret

func GetRpcSecret() string

Types

type AuthConfig

type AuthConfig struct {
	Username string `envconfig:"WEB_USERNAME" default:""`
	Password string `envconfig:"WEB_PASSWORD" default:""`
}

type Config

type Config struct {
	Http  HttpConfig
	Dns   DnsConfig
	Debug bool `envconfig:"DEBUG" default:"false"`
}

func GetConfig

func GetConfig() Config

type DnsConfig

type DnsConfig struct {
	DnsPort      string `envconfig:"DNS_PORT" default:"53"`
	NameServer   string `envconfig:"NAME_SERVER" default:"223.5.5.5"`
	DomainSuffix string `envconfig:"DOMAIN_SUFFIX" default:""`
}

type HttpConfig

type HttpConfig struct {
	Auth      AuthConfig
	HttpPort  string `envconfig:"WEB_PORT" default:"80"`
	RpcSecret string `envconfig:"RPC_SECRET" default:""`
}

Jump to

Keyboard shortcuts

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