config

package
v0.0.0-...-3bd383c Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2022 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() (*logrus.Entry, []grpc_logrus.Option)

func Middleware

func Middleware() *grpc.Server

func Recovery

func Recovery() []grpc_recovery.Option

Types

type Config

type Config struct {
	ENV                 string `envconfig:"GO_ENV"`
	HTTP_PORT           string `envconfig:"HTTP_PORT"`
	GRPC_PORT           string `envconfig:"GRPC_PORT"`
	REDIS_HOST          string `envconfig:"REDIS_HOST"`
	REDIS_PORT          string `envconfig:"REDIS_PORT"`
	REDIS_PASSWORD      string `envconfig:"REDIS_PASSWORD"`
	REDIS_LOG_CONTAINER string `envconfig:"REDIS_LOG_CONTAINER"`
	LOG_SERVICE_NAME    string `envconfig:"LOG_SERVICE_NAME"`
	JWT_SECRET          string `envconfig:"JWT_SECRET"`
	PG_IAM_HOST         string `envconfig:"PG_IAM_HOST"`
	PG_IAM_USER         string `envconfig:"PG_IAM_USER"`
	PG_IAM_DATABASE     string `envconfig:"PG_IAM_DATABASE"`
	PG_IAM_PASSWORD     string `envconfig:"PG_IAM_PASSWORD"`
	PG_IAM_PORT         string `envconfig:"PG_IAM_PORT"`
}
var LoadedConfig Config

func LoadConfig

func LoadConfig(path string) (myConfig Config, err error)

Jump to

Keyboard shortcuts

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