config

package
v0.0.0-...-d323686 Latest Latest
Warning

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

Go to latest
Published: Apr 27, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var App configType

Functions

func Load

func Load(path ...string)

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"`
}

type Flowbot

type Flowbot struct {
	URL          string `json:"url" yaml:"url" mapstructure:"url"`
	ChannelPath  string `json:"channel_path" yaml:"channel_path" mapstructure:"channel_path"`
	DownloadPath string `json:"download_path" yaml:"download_path" mapstructure:"download_path"`
}

type Log

type Log struct {
	Level string `json:"level" yaml:"level" mapstructure:"level"`
}

type Redis

type Redis struct {
	Host     string `json:"host" yaml:"host" mapstructure:"host"`
	Port     int    `json:"port" yaml:"port" mapstructure:"port"`
	DB       int    `json:"db" yaml:"db" mapstructure:"db"`
	Password string `json:"password" yaml:"pass" mapstructure:"password"`
}

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"`
}

type Telegram

type Telegram struct {
	Enabled bool `json:"enabled" yaml:"enabled" mapstructure:"enabled"`
}

Jump to

Keyboard shortcuts

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