config

package
v1.9.4 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2024 License: LGPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsRunningInDebug added in v1.4.2

func IsRunningInDebug() bool

func IsRunningInProduction added in v1.4.2

func IsRunningInProduction() bool

Types

type Config

type Config struct {
	ServiceBindAddress string
	ServiceBindHost    string
	ServicePort        int
	ServiceKey         string
	TLSRootCert        string
	TLSCert            string
	TLSKey             string
	LoversEar          string
	Interval           int
	APIKeys            []string
	AdminKeys          []string
}

func DefaultConfig

func DefaultConfig() *Config

func ParseConfig

func ParseConfig(cfgFile string) *Config

Jump to

Keyboard shortcuts

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