config

package
v0.0.0-...-7a0fd82 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	GoogleOAuth GoogleOAuth `toml:"google_oauth"`
	HTTPSetting HTTPSetting `toml:"http_setting"`
	DataDir     string      `toml:"data_dir"`
	SMTP        SMTPSetting `toml:"smtp"`
}

func New

func New(cfgPath string) (Config, error)

type GoogleOAuth

type GoogleOAuth struct {
	ClientID     string `toml:"client_id"`
	ClientSecret string `toml:"client_secret"`
	RedirectURL  string `toml:"redirect_url"`
}

type HTTPSetting

type HTTPSetting struct {
	Listen       string `toml:"listen"`
	CertFilePath string `toml:"cert_filepath"`
	KeyFilePath  string `toml:"key_filepath"`
}

type SMTPSetting

type SMTPSetting struct {
	Host     string `toml:"host"`
	Username string `toml:"username"`
	Password string `toml:"password"`
}

Jump to

Keyboard shortcuts

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