config

package
v2.1.4+incompatible Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2022 License: Apache-2.0, Apache-2.0 Imports: 3 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 {
	Host           string   `yaml:"Host" validate:"nonzero"`
	Port           int      `yaml:"Port" validate:"nonzero"`
	User           string   `yaml:"User" validate:"nonzero"`
	Password       string   `yaml:"Password"`
	IgnoredUsers   []string `yaml:"IgnoredUsers"`
	DBName         string   `yaml:"DBName" validate:"nonzero"`
	PauseInSeconds int      `yaml:"PauseInSeconds" validate:"min=1"`
}

func (Config) Validate

func (c Config) Validate() error

Jump to

Keyboard shortcuts

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