config

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrLpacVersionRequired = errors.New("lpac version is required")
	ErrAdvertisingTooLong  = errors.New("advertising message is too long (max: 100 characters)")
	ErrInvalidAdvertising  = errors.New("advertising message contains non-printable ASCII characters")
)
View Source
var C = &Config{}

Functions

This section is empty.

Types

type Config

type Config struct {
	ListenAddress string
	LpacVersion   string
	DataDir       string
	DontDownload  bool
	Advertising   string
	Verbose       bool
}

func (*Config) GetAdvertising added in v1.0.3

func (c *Config) GetAdvertising() []byte

func (*Config) IsValid

func (c *Config) IsValid() error

func (*Config) LoadEnv

func (c *Config) LoadEnv()

Jump to

Keyboard shortcuts

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