Documentation ¶
Index ¶
Constants ¶
View Source
const ( BotNamePaguMainnet = "Pagu-Mainnet" BotNamePaguTestnet = "Pagu-Testnet" BotNamePaguModerator = "Pagu-Moderator" )
View Source
const (
PriceCacheKey = "PriceCacheKey"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { BotName string `yaml:"bot_name"` Network string `yaml:"network"` NetworkNodes []string `yaml:"network_nodes"` LocalNode string `yaml:"local_node"` Database Database `yaml:"database"` AuthIDs []string `yaml:"auth_ids"` GRPC *GRPC `yaml:"grpc"` // ! TODO: config for modules should moved to the module. Wallet *Wallet `yaml:"wallet"` Logger *Logger `yaml:"logger"` HTTP *HTTP `yaml:"http"` Phoenix *PhoenixNetwork `yaml:"phoenix"` DiscordBot *DiscordBot `yaml:"discord"` Telegram *Telegram `yaml:"telegram"` Notification *Notification `yaml:"notification"` }
func (*Config) BasicCheck ¶
BasicCheck validate presence of required config variables.
type DiscordBot ¶
type Notification ¶
type Notification struct {
Zoho *Zoho `yaml:"zoho"`
}
type PhoenixNetwork ¶
Click to show internal directories.
Click to hide internal directories.