config

package
v0.0.0-...-0791769 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitDB

func InitDB() *gorm.DB

InitDB will initialize the database and returns a DB connection

Types

type PotatoConfig

type PotatoConfig struct {

	// JWTSigningKey is the key used to sign the JWT
	JWTSigningKey string `mapstructure:"jwt_signing_key"`

	// JWTExpiration defines the JWT validaiton
	JWTExpiration time.Duration `mapstructure:"jwt_expiration"`
}

PotatoConfig represents the Potato Configuration

func GetConf

func GetConf() (*PotatoConfig, error)

GetConf returns the service Configuration

Jump to

Keyboard shortcuts

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