conf

package
v0.0.0-...-fe69d71 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2019 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func LoadConfig

func LoadConfig() error

Types

type ClientConfig

type ClientConfig struct {
	BasePath          string `toml:"basePath"`
	PasswordResetPath string `toml:"passwordResetPath"`
	RegistrationPath  string `toml:"registrationPath"`
}

type Config

type Config struct {
	Koneko    KoneConfig      `toml:"Koneko"`
	SMTP      SMTPConfig      `toml:"SMTP"`
	Judgement JudgementConfig `toml:"Judgement"`
	Client    ClientConfig    `toml:"Client"`
}

func GetConfig

func GetConfig() *Config

type JudgementConfig

type JudgementConfig struct {
	Concurrently int `toml:"concurrently"`
}

type KoneConfig

type KoneConfig struct {
	DBHost     string `toml:"dbHost"`
	DBName     string `toml:"dbName"`
	DBUser     string `toml:"dbUser"`
	DBPassword string `toml:"dbPassword"`
	RedisHost  string `toml:"redisHost"`
	Debug      bool   `toml:"debug"`
}

type SMTPConfig

type SMTPConfig struct {
	Host       string `toml:"host"`
	Port       int    `toml:"port"`
	NoStartTLS bool   `toml:"noStartTLS"`
	User       string `toml:"user"`
	Password   string `toml:"password"`
	From       string `toml:"from"`
}

Jump to

Keyboard shortcuts

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