config

package
v0.0.0-...-128d701 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2019 License: GPL-3.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRdbUri

func GetRdbUri() (uri string)

Types

type Jwt

type Jwt struct {
	Secret       string `yaml:"secret"`
	ValidMinutes int64  `yaml:"valid_minutes"`
	Realm        string `yaml:"realm"`
}

func GetJwtConfig

func GetJwtConfig() *Jwt

func (*Jwt) ExpiresTime

func (jwt *Jwt) ExpiresTime() time.Time

type MySQL

type MySQL struct {
	UserName string `yaml:"username"`
	Password string `yaml:"password"`
	DataBase string `yaml:"database"`
	Dialect  string `yaml:"dialect"`
	Host     string `yaml:"host"`
	Port     int    `yaml:"port"`
}

type Settings

type Settings struct {
	MySQL *MySQL
	Jwt   *Jwt
}

func NewSettings

func NewSettings() (*Settings, error)

Jump to

Keyboard shortcuts

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