config

package
v0.0.0-...-15fac35 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2022 License: MIT Imports: 5 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 {
	// contains filtered or unexported fields
}

func GetConf

func GetConf() Config

func LoadConfig

func LoadConfig(filename string) (Config, error)

func (Config) DarkHours

func (c Config) DarkHours() int

func (Config) Hours

func (c Config) Hours() int

func (Config) IP

func (c Config) IP() net.IP

func (*Config) Load

func (c *Config) Load(filename string) error

func (Config) MID

func (c Config) MID() string

func (Config) Port

func (c Config) Port() int

func (Config) Token

func (c Config) Token() string

Jump to

Keyboard shortcuts

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