config

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StaticFilePath

func StaticFilePath() string

Types

type AppConfig

type AppConfig struct {
	Secured          bool
	SslCertFile      string
	SslCertKey       string
	ServicePort      uint16
	MonitoringPort   uint16
	PingDuration     time.Duration
	SecretKey        string
	BackendType      string
	PluginDir        string
	FailingThreshold uint16
	DownThreshold    uint16
	RemoveThreshold  uint16
	MaxClients       int
	RequestRate      int
	RequestBurst     int
	RegisteredUsers  []Credentials
}

func Load

func Load() *AppConfig

func (*AppConfig) Users

func (cfg *AppConfig) Users() string

type Credentials

type Credentials struct {
	Login    string
	Password string
}

Jump to

Keyboard shortcuts

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