Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var App configType
Functions ¶
Types ¶
type Discord ¶
type Discord struct { Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"` AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"` PublicKey string `json:"public_key" yaml:"public_key" mapstructure:"public_key"` ClientID string `json:"client_id" yaml:"client_id" mapstructure:"client_id"` ClientSecret string `json:"client_secret" yaml:"client_secret" mapstructure:"client_secret"` BotToken string `json:"bot_token" yaml:"bot_token" mapstructure:"bot_token"` }
type Engine ¶
type Engine struct { Type string `json:"type" yaml:"type" mapstructure:"type"` Limits struct { Cpus string `json:"cpus" yaml:"cpus" mapstructure:"cpus"` Memory string `json:"memory" yaml:"memory" mapstructure:"memory"` } `json:"limits" yaml:"limits" mapstructure:"limits"` Mounts struct { Bind struct { Allowed bool `json:"allowed" yaml:"allowed" mapstructure:"allowed"` } `json:"bind" yaml:"bind" mapstructure:"bind"` } `json:"mounts" yaml:"mounts" mapstructure:"mounts"` Docker struct { Config string `json:"config" yaml:"config" mapstructure:"config"` } `json:"docker" yaml:"docker" mapstructure:"docker"` Shell struct { CMD []string `json:"cmd" yaml:"cmd" mapstructure:"cmd"` UID string `json:"uid" yaml:"uid" mapstructure:"uid"` GID string `json:"gid" yaml:"gid" mapstructure:"gid"` } `json:"shell" yaml:"shell" mapstructure:"shell"` Machine struct { Host string `json:"host" yaml:"host" mapstructure:"host"` Port int `json:"post" yaml:"port" mapstructure:"port"` Username string `json:"username" yaml:"username" mapstructure:"username"` Password string `json:"password" yaml:"password" mapstructure:"password"` } `json:"machine" yaml:"machine" mapstructure:"machine"` }
type Metrics ¶ added in v0.18.1
type Metrics struct {
Endpoint string `json:"endpoint" yaml:"endpoint" mapstructure:"endpoint"`
}
type Slack ¶
type Slack struct { Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"` AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"` ClientID string `json:"client_id" yaml:"client_id" mapstructure:"client_id"` ClientSecret string `json:"client_secret" yaml:"client_secret" mapstructure:"client_secret"` SigningSecret string `json:"signing_secret" yaml:"signing_secret" mapstructure:"signing_secret"` VerificationToken string `json:"verification_token" yaml:"verification_token" mapstructure:"verification_token"` AppToken string `json:"app_token" yaml:"app_token" mapstructure:"app_token"` BotToken string `json:"bot_token" yaml:"bot_token" mapstructure:"bot_token"` }
type StoreType ¶
type StoreType struct { // 16-byte key for XTEA. Used to initialize types.UidGenerator. UidKey string `json:"uid_key" yaml:"uid_key" mapstructure:"uid_key"` // Maximum number of results to return from adapter. MaxResults int `json:"max_results" yaml:"max_results" mapstructure:"max_results"` // DB adapter name to use. Should be one of those specified in `Adapters`. UseAdapter string `json:"use_adapter" yaml:"use_adapter" mapstructure:"use_adapter"` // Configurations for individual adapters. Adapters map[string]interface{} `json:"adapters" yaml:"adapters" mapstructure:"adapters"` }
type TLSConfig ¶
type TLSConfig struct { // Flag enabling TLS Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"` // Listen for connections on this address:port and redirect them to HTTPS port. RedirectHTTP string `json:"http_redirect" yaml:"redirect_http" mapstructure:"redirect_http"` // Enable Strict-Transport-Security by setting max_age > 0 StrictMaxAge int `json:"strict_max_age" yaml:"strict_max_age" mapstructure:"strict_max_age"` // ACME autocert config, e.g. letsencrypt.org Autocert *tlsAutocertConfig `json:"autocert" yaml:"autocert" mapstructure:"autocert"` // If Autocert is not defined, provide file names of static certificate and key CertFile string `json:"cert_file" yaml:"certFile" mapstructure:"cert_file"` KeyFile string `json:"key_file" yaml:"keyFile" mapstructure:"key_file"` }
type Tailchat ¶
type Tailchat struct { Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"` ApiURL string `json:"api_url" yaml:"api_url" mapstructure:"api_url"` AppID string `json:"app_id" yaml:"app_id" mapstructure:"app_id"` AppSecret string `json:"app_secret" yaml:"app_secret" mapstructure:"app_secret"` }
Click to show internal directories.
Click to hide internal directories.