Help us shape the future of Go! Take the 2026 Go Developer Survey

config

package
v0.5.4 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig(v interface{}) error

Types

type Config

type Config struct {
	DevMode         bool              `json:"dev_mode"`
	DevGuildIDs     []snowflake.ID    `json:"dev_guild_ids"`
	SupportGuildID  snowflake.ID      `json:"support_guild_id"`
	DevUserIDs      []snowflake.ID    `json:"dev_user_ids"`
	LogLevel        log.Level         `json:"log_level"`
	ErrorLogWebhook LogWebhookConfig  `json:"error_log_webhook"`
	InfoLogWebhook  LogWebhookConfig  `json:"info_log_webhook"`
	Token           string            `json:"token"`
	Database        db.DatabaseConfig `json:"database"`
}

type LogWebhookConfig

type LogWebhookConfig struct {
	ID    snowflake.ID `json:"id"`
	Token string       `json:"token"`
}

Jump to

Keyboard shortcuts

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