config

package
v0.0.0-...-f239e5c Latest Latest
Warning

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

Go to latest
Published: May 23, 2022 License: MIT Imports: 10 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 {
	Discord struct {
		Auth     string   `mapstructure:"auth"`
		Guilds   []uint64 `mapstructure:"guilds"`
		Channels []uint64 `mapstructure:"channels"`
	} `mapstructure:"discord"`

	Posts struct {
		IgnoreRegexp *regexp.Regexp `mapstructure:"ignore_regexp"`
	} `mapstructure:"posts"`

	Storage struct {
		PostgresDSN string `mapstructure:"postgres_dsn"`
	} `mapstructure:"storage"`

	Logging struct {
		Level zapcore.Level `mapstructure:"level"`
	} `mapstructure:"logging"`

	Api struct {
		Port uint16 `mapstructure:"port"`
	} `mapstructure:"api"`
}

func Read

func Read() (*Config, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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