config

package
v0.0.0-...-a96ba29 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2021 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read()

Types

type AccessTokensConfig

type AccessTokensConfig struct {
	SendGridKey string `json:"send_grid_key"`
}

func AccessTokens

func AccessTokens() AccessTokensConfig

type DBConfig

type DBConfig struct {
	Host string `json:"host"`
	Port uint   `json:"port"`
	Pass string `json:"pass"`
	User string `json:"user"`
	Db   string `json:"db"`
}

func Database

func Database() DBConfig

type EmailAddressesConfig

type EmailAddressesConfig struct {
	FromSupport mail.Address `json:"from_support"`
	FromNoReply mail.Address `json:"from_no_reply"`
	ToAdmin     mail.Address `json:"to_admin"`
}

func Emails

func Emails() EmailAddressesConfig

type PathsConfig

type PathsConfig struct {
	SaveDir string `json:"save_dir"`
}

func Paths

func Paths() PathsConfig

type RedisConfig

type RedisConfig struct {
	Host     string `json:"host"`
	Password string `json:"password"`
	DB       int    `json:"db"`
}

func Redis

func Redis() RedisConfig

Jump to

Keyboard shortcuts

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