config

package
v0.0.0-...-ee8eda9 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDebugLevelEnvVars

func GetDebugLevelEnvVars() string

func LoadConfig

func LoadConfig()

func LoadTokenGenConfig

func LoadTokenGenConfig()

Types

type DB

type DB struct {
	Username string
	Password string
	Host     string
	Port     string
	Schema   string
}

func GetDbEnvVars

func GetDbEnvVars() *DB

type JWT

type JWT struct {
	AccessTokenSecret      string
	AccessTokenExpireTime  int
	RefreshTokenSecret     string
	RefrehTokenExpireTime  int
	ServiceTokenSecret     string
	ServiceTokenExpireTime int
}

func GetJWTEnvVars

func GetJWTEnvVars() *JWT

type OPA

type OPA struct {
	Host string
	Port string
}

func GetOPAEnvVars

func GetOPAEnvVars() *OPA

type Server

type Server struct {
	Name string
	URI  string
	Port string
}

func GetServerEnvVars

func GetServerEnvVars() *Server

Jump to

Keyboard shortcuts

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