conf

package
v0.0.0-...-4ecb97e Latest Latest
Warning

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

Go to latest
Published: Jan 22, 2022 License: Apache-2.0 Imports: 1 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 {
	// ElasticSearch
	ES_USER_MAPPING string
	ES_TASK_MAPPING string

	// WorkStation
	WS_API_HOST  string
	WS_API_PORT  string
	WS_GRPC_HOST string
	WS_GRPC_PORT string

	// WorkStation_ElasticSearch
	WS_ES_HOST     string
	WS_ES_PORT     string
	WS_ES_USERNAME string
	WS_ES_PWD      string

	// JWT
	JWT_SIGNIN_KEY       string
	TOKEN_DURATION_HOURS int

	// environment is dev
	IS_DEV_ENV bool

	// SSL/TLS
	CERT_FILE string
	KEY_FILE  string
}

func GetConfig

func GetConfig() (Configuration, error)

Jump to

Keyboard shortcuts

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