config

package
v0.7.4 Latest Latest
Warning

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

Go to latest
Published: Aug 15, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const FilePath = "secret_config.json"
View Source
const SwaggerPath = "/docs/swagger/swagger.yaml"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	General GeneralConfig  `json:"general"`
	Host    HostConfig     `json:"host"`
	Discord DiscordConfig  `json:"discord"`
	Youtube youtube.Config `json:"youtube"`
	Secret  string         `json:"secret"`
}

func InitConfig

func InitConfig() (*Config, error)

type DiscordConfig

type DiscordConfig struct {
	Token  string            `json:"token"`
	Bot    string            `json:"bot"`
	ID     int64             `json:"id"`
	Prefix string            `json:"prefix"`
	API    discord.APIConfig `json:"api"`
	Voice  VoiceConfig       `json:"voice"`
}

type GeneralConfig

type GeneralConfig struct {
	Debug bool `json:"debug"`
}

type HostConfig

type HostConfig struct {
	IP   string `json:"ip"`
	Bot  string `json:"bot"`
	Mock string `json:"mock"`
	Web  string `json:"web"`
}

type LichessConfig

type LichessConfig struct {
	Token string `json:"token"`
}

type SheetsConfig

type SheetsConfig struct {
	ID   string `json:"id"`
	Film string `json:"film"`
}

type VKConfig

type VKConfig struct {
	Login    string `json:"login"`
	Password string `json:"password"`
}

type VoiceConfig

type VoiceConfig struct {
	dca.EncodeOptions
}

Jump to

Keyboard shortcuts

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