config

package
v0.0.0-...-6f0d0d7 Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ProgName       = "EggContractor"
	ConfigTemplate = `` /* 1509-byte string literal not displayed */

)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Player       PlayerConfig
	Players      []PlayerConfig
	Database     DatabaseConfig
	Notification NotificationConfig
}

func (Config) Deprecations

func (c Config) Deprecations() Deprecations

func (Config) HasLegacyPlayerField

func (c Config) HasLegacyPlayerField() bool

func (Config) LockPath

func (c Config) LockPath(lockName string) string

func (Config) MultiAccountMode

func (c Config) MultiAccountMode() bool

func (*Config) ResolveAndValidate

func (c *Config) ResolveAndValidate() error

type DatabaseConfig

type DatabaseConfig struct {
	Path string
}

type Deprecations

type Deprecations struct {
	HasLegacyPlayerField bool
}

type NotificationConfig

type NotificationConfig struct {
	Pushover struct {
		On      bool
		APIKey  string `mapstructure:"api_key"`
		UserKey string `mapstructure:"user_key"`
	}
}

type PlayerConfig

type PlayerConfig struct {
	Id       string
	DeviceId string `mapstructure:"device_id"`
}

Jump to

Keyboard shortcuts

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