configuration

package
v0.0.0-...-57f2031 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandStringBytes

func RandStringBytes(n int) string

RandStringBytes is a simple fonction helping to generate a pseudo-random string that may be used to get a jwt secret

Types

type GlobalConf

type GlobalConf struct {
	DbName        string
	User          string
	Password      string
	Host          string
	SslMode       bool
	Port          uint
	JwtSecret     string
	JwtExpiration time.Duration
}

GlobalConf store db connection informations

func (GlobalConf) DbStringConnection

func (g GlobalConf) DbStringConnection() string

DbStringConnection return the string connection that will be used by postgres driver

Jump to

Keyboard shortcuts

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