config

package module
v0.0.0-...-cd5c854 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2019 License: MIT Imports: 8 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Configuration

type Configuration struct {
	PORT               int
	DBConnectionString string
	Jwt                Jwt `json:"jwt"`
	MQConnectionString string
	MongoDB            MongoDB `json:"mongo"`
}

Configuration Definition

func GetConfig

func GetConfig() Configuration

GetConfig - Return config

type Jwt

type Jwt struct {
	Secret    string        `json:"secret"`
	Algorithm string        `json:"algorithm"`
	ExpiresIn time.Duration `json:"expiresIn"`
	Issuer    string        `json:"issuer"`
}

Jwt Definition

type MongoDB

type MongoDB struct {
	ConnectionString string `json:"connectionstring"`
	Database         string `json:"database"`
}

MongoDB Config Structure

Jump to

Keyboard shortcuts

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