config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type App added in v0.2.0

type App struct {
	Debug            bool  `yaml:"debug"`
	BookmarksPerPage int64 `yaml:"bookmarks_per_page"`
	DisableSignup    bool  `yaml:"disable_signup"`
}

type Config

type Config struct {
	App     App     `yaml:"app"`
	Server  Server  `yaml:"server"`
	DB      DB      `yaml:"db"`
	Storage Storage `yaml:"storage"`
	SMTP    SMTP    `yaml:"smtp"`
}

func Load

func Load(filename string) (*Config, error)

type DB added in v0.2.0

type DB struct {
	Connection string `yaml:"connection"`
	Type       string `yaml:"type"`
}

type SMTP added in v0.2.0

type SMTP struct {
	Host              string `yaml:"host"`
	Port              int    `yaml:"port"`
	Username          string `yaml:"username"`
	Password          string `yaml:"password"`
	Sender            string `yaml:"sender"`
	TLS               bool   `yaml:"tls"`
	TLSAllowInsecure  bool   `yaml:"tls_allow_insecure"`
	SendTimeout       int    `yaml:"send_timeout"`
	ConnectionTimeout int    `yaml:"connection_timeout"`
}

type Server added in v0.2.0

type Server struct {
	Address string `yaml:"address"`
	BaseURL string `yaml:"base_url"`
}

type Storage added in v0.2.0

type Storage struct {
	Type string `yaml:"type"`
	Root string `yaml:"root"`
}

Jump to

Keyboard shortcuts

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