config

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 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.Snowflake `json:"dev_guild_ids"`
	SupportGuildID  snowflake.Snowflake   `json:"support_guild_id"`
	DevUserIDs      []snowflake.Snowflake `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.Snowflake `json:"id"`
	Token string              `json:"token"`
}

Jump to

Keyboard shortcuts

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