configure

package
v0.0.0-...-3cc618a Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Config = viper.New()

Functions

This section is empty.

Types

type ServerCfg

type ServerCfg struct {
	Level              string   `mapstructure:"level"`
	ConfigFile         string   `mapstructure:"config_file"`
	RedisURI           string   `mapstructure:"redis_uri"`
	MongoURI           string   `mapstructure:"mongo_uri"`
	MongoDB            string   `mapstructure:"mongo_db"`
	ConnURI            string   `mapstructure:"conn_uri"`
	ConnType           string   `mapstructure:"conn_type"`
	CookieDomain       string   `mapstructure:"cookie_domain"`
	TwitchRedirectURI  string   `mapstructure:"twitch_redirect_uri"`
	TwitchClientID     string   `mapstructure:"twitch_client_id"`
	TwitchClientSecret string   `mapstructure:"twitch_client_secret"`
	WebsiteURL         string   `mapstructure:"website_url"`
	DiscordInvite      string   `mapstructure:"discord_invite"`
	DiscordBotToken    string   `mapstructure:"discord_bot_token"`
	MaxHooksPerGuild   int      `mapstructure:"max_hooks_per_guild"`
	RebuildCommands    bool     `mapstructure:"rebuild_commands"`
	Admins             []string `mapstructure:"admins"`
	ExitCode           int      `mapstructure:"exit_code"`
}

Jump to

Keyboard shortcuts

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