config

package
v0.0.0-...-90f3be2 Latest Latest
Warning

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

Go to latest
Published: Jun 13, 2019 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 {
	Hostname      string      `cfg:"hostname"`
	Port          int64       `cfg:"port"`
	Socket        string      `cfg:"socket"`
	LogDir        string      `cfg:"logdir"`
	ClientID      string      `cfg:"client-id"`
	IntegrationID int         `cfg:"integration-id"`
	HookSecret    string      `cfg:"hook-secret"`
	Trans         []*TransDef `cfg:"translators"`
	APIKey        string      `cfg:"api-key"`

	*basecfg.Config
}

func New

func New() *Config

func (*Config) FlagSet

func (c *Config) FlagSet(fs *pflag.FlagSet)

func (*Config) Validate

func (c *Config) Validate() error

type TransDef

type TransDef struct {
	Prefix string   `cfg:"prefix"`
	Owners []string `cfg:"owners,flow"`
}

Jump to

Keyboard shortcuts

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