config

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2021 License: MIT Imports: 3 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 token.
	Token string `envconfig:"TOKEN"`
	// Discord command prefix.
	Prefix string `envconfig:"PREFIX" default:">"`
	// API host.
	APIHost string `envconfig:"API_HOST"`
	// Link to entry page.
	LinkHost string `envconfig:"LINK_HOST" default:"https://myanimelist.net"`
	// Redis config.
	Redis redisConfig `envconfig:"REDIS"`
}

Config is config for hayasui.

func GetConfig

func GetConfig() (cfg Config, err error)

GetConfig to read and parse env.

Jump to

Keyboard shortcuts

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