configs

package
v0.0.0-...-9e73b81 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DbUsername = "DB_USERNAME"
	DbPassword = "DB_PASSWORD"
	DbHost     = "DB_HOST"
	DbPort     = "DB_PORT"
	DbName     = "DB_NAME"
	SslMode    = "SSL_MODE"
	SecretKey  = "SECRET_KEY"
	HttpPort   = "HTTP_PORT"
)

Variables

This section is empty.

Functions

func InitConsulConfig

func InitConsulConfig(log logger.Logger, port int) error

func MustPort

func MustPort() int

Types

type Config

type Config struct {
	DbUsername string `json:"db_username"`
	DbPassword string `json:"db_password"`
	DbHost     string `json:"db_host"`
	DbPort     int    `json:"db_port"`
	DbName     string `json:"db_name"`
	SslMode    string `json:"ssl_mode"`
	SecretKey  string `json:"secret_key"`
	HttpPort   int    `json:"http_port"`
}

Jump to

Keyboard shortcuts

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