config

package
v0.0.0-...-2fc7590 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	Server *Server
	DB     *Database
	JWT    *JWT
}

Configuration holds data necessery for configuring application

func Load

func Load(env string) (*Configuration, error)

Load returns Configuration struct

type Database

type Database struct {
	PSN          string
	Log          bool
	CreateSchema bool
}

Database holds data necessery for database configuration

type JWT

type JWT struct {
	Realm            string
	Secret           string
	Duration         int
	RefreshDuration  int
	MaxRefresh       int
	SigningAlgorithm string
}

JWT holds data necessery for JWT configuration

type Server

type Server struct {
	Port int
}

Server holds data necessery for server configuration

Jump to

Keyboard shortcuts

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