Documentation
¶
Index ¶
Constants ¶
View Source
const ( DefaultLogLevel = "info" DefaultPort = 8080 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
LogLevel string `long:"log_level" description:"Logging level {debug, info, warn, error}"`
Port int `long:"port" description:"Port to listen on"`
GinMode string `long:"gin_mode" description:"Gin mode {debug, release}"`
GoogleAnalyticsID string `long:"google_analytics_id" description:"Google Analytics ID"`
Auth auth.Config `group:"auth" namespace:"auth"`
Email email.Config `group:"email" namespace:"email"`
Cloudflare cloudflare.Config `group:"cloudflare" namespace:"cloudflare"`
Store store.Config `group:"store" namespace:"store"`
Lightning lightning.Config `group:"lightning" namespace:"lightning"`
L402 l402.Config `group:"l402" namespace:"l402"`
Video video.Config `group:"video" namespace:"video"`
}
func DefaultConfig ¶
func DefaultConfig() *Config
func (*Config) SetGinMode ¶
func (c *Config) SetGinMode()
func (*Config) SetLoggerLevel ¶
type EmailConfig ¶
type StorageConfig ¶
Click to show internal directories.
Click to hide internal directories.