config

package
v0.0.0-...-d6a1215 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2022 License: MIT Imports: 7 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 {
	SecretKey string `default:"correct-horse-battery-staple" split_words:"true"`
	BindAddr  string `default:":12500" split_words:"true"`

	WhitelistProvider string `default:"Whitelist-HTTP-API" split_words:"true"`
	WhitelistApiUrl   string `default:"http://localhost:8500" split_words:"true"`
	WhitelistApiToken string `split_words:"true"`

	LogLevel       string `split_words:"true" default:"debug"`
	UseJsonLogging bool   `split_words:"true" default:"false"`

	DiscordClientId     string `split_words:"true"`
	DiscordClientSecret string `split_words:"true"`
	DiscordCallbackUrl  string `default:"http://localhost:12500/callback" split_words:"true"`
	DiscordGuildId      string `split_words:"true"`

	OAuth2Config *oauth2.Config
}

func Load

func Load() (*Config, error)

Jump to

Keyboard shortcuts

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