config

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 2018 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdvisoryReceiver

type AdvisoryReceiver struct {
	Addr           string
	ReceiveTimeout Duration
	SocketTimeout  Duration
	Disabled       bool
}

AdvisoryReceiver config

type Config

type Config struct {
	LogFile        string
	CheckerTimeout Duration
	Database       struct {
		Connection     string
		MaxConnections int
		SafeReinit     bool
	}
	Scoreboard struct {
		WwwPath       string
		Addr          string
		UpdateTimeout Duration
	}
	API struct {
		AttackBuffer int
	}
	Pulse            Pulse
	FlagReceiver     FlagReceiver
	AdvisoryReceiver AdvisoryReceiver
	Teams            []steward.Team
	Services         []steward.Service
}

Config config

func ReadConfig

func ReadConfig(path string) (cfg Config, err error)

ReadConfig for tfh

type Duration

type Duration struct {
	time.Duration
}

Duration type with toml unmarshalling support

func (*Duration) UnmarshalTOML

func (d *Duration) UnmarshalTOML(data []byte) (err error)

UnmarshalTOML for Duration

type FlagReceiver

type FlagReceiver struct {
	Addr           string
	ReceiveTimeout Duration
	SocketTimeout  Duration
}

FlagReceiver config

type Pulse

type Pulse struct {
	Start        Time
	Half         Duration
	Lunch        Duration
	RoundLen     Duration
	CheckTimeout Duration
	DarkestTime  Duration
}

Pulse config

type Time

type Time struct {
	time.Time
}

Time type with toml unmarshalling support

func (*Time) UnmarshalTOML

func (t *Time) UnmarshalTOML(data []byte) (err error)

UnmarshalTOML for Time

Jump to

Keyboard shortcuts

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