common

package
v0.0.0-...-bf7cd7d Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Common

type Common struct {
	Log *zap.Logger
	Env Env
}

func NewCommon

func NewCommon() *Common

type Env

type Env struct {
	API_PORT int

	PGSQL_DATA     string
	PGSQL_HOST     string
	PGSQL_PORT     string
	PGSQL_USER     string
	PGSQL_PASSWORD string
	PGSQL_DBNAME   string
	PGSQL_NAME     string

	REDIS_HOST     string
	REDIS_PASSWORD string
	REDIS_PORT     string
	REDIS_NAME     string
	REDIS_DB       int

	AUTH_URL      string
	AUTH_PORT     string
	AUTH_ENDPOINT string

	JWT_SIGN []byte
}

Jump to

Keyboard shortcuts

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