Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Configuration = struct { Bot BotConfiguration `yaml:"bot"` Telegram TelegramConfiguration `yaml:"telegram"` Database DatabaseConfiguration `yaml:"database"` Lnbits LnbitsConfiguration `yaml:"lnbits"` // Generate GenerateConfiguration `yaml:"generate"` Nostr NostrConfiguration `yaml:"nostr"` }{}
Functions ¶
func IsAuthorized ¶
Types ¶
type BotConfiguration ¶
type BotConfiguration struct {
SocksProxy *SocksConfiguration `yaml:"socks_proxy,omitempty"`
TorProxy *SocksConfiguration `yaml:"tor_proxy,omitempty"`
LNURLServer string `yaml:"lnurl_server"`
LNURLServerUrl *url.URL `yaml:"-"`
LNURLHostName string `yaml:"lnurl_public_host_name"`
LNURLHostUrl *url.URL `yaml:"-"`
LNURLSendImage bool `yaml:"lnurl_image"`
AdminAPIHost string `yaml:"admin_api_host"`
Name string `yaml:"name"`
Username string `yaml:"username"`
Botadmin string `yaml:"botadmin"`
AuthorizedIDs []string `yaml:"authorized_ids"`
}
type DatabaseConfiguration ¶
type LnbitsConfiguration ¶
type NostrConfiguration ¶
type NostrConfiguration struct {
PrivateKey string `yaml:"private_key"`
}
type SocksConfiguration ¶
type TelegramConfiguration ¶
Click to show internal directories.
Click to hide internal directories.