config

package
v0.0.0-...-cc66ea5 Latest Latest
Warning

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

Go to latest
Published: Jun 24, 2021 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 {
	BindAddress  string `config:"bindaddress"`
	AllowOrigins string `config:"alloworigins"`
	LogLevel     int    `config:"loglevel"`
	Debug        bool   `config:"debug"`

	DiscordToken string `config:"discord.token"`

	RedisAddress  string `config:"redis.address"`
	RedisUsername string `config:"redis.username"`
	RedisPassword string `config:"redis.password"`
	RedisDB       int    `config:"redis.db"`
}

func Load

func Load() (c Config, err error)

Jump to

Keyboard shortcuts

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