package
module
Version:
v0.0.0-...-cd5c854
Opens a new window with list of versions in this module.
Published: Aug 11, 2019
License: MIT
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 7
Opens a new window with list of known importers.
Documentation
¶
type Configuration struct {
PORT int
DBConnectionString string
Jwt Jwt `json:"jwt"`
MQConnectionString string
MongoDB MongoDB `json:"mongo"`
}
Configuration Definition
GetConfig - Return config
type Jwt struct {
Secret string `json:"secret"`
Algorithm string `json:"algorithm"`
ExpiresIn time.Duration `json:"expiresIn"`
Issuer string `json:"issuer"`
}
Jwt Definition
type MongoDB struct {
ConnectionString string `json:"connectionstring"`
Database string `json:"database"`
}
MongoDB Config Structure
Source Files
¶
Click to show internal directories.
Click to hide internal directories.