environment

package
v0.0.0-...-0575462 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetConfig

func SetConfig()

Types

type Auth

type Auth struct {
	JWTSecret      string `json:"jwtSecret"`
	PasswordPrefix string `json:"passwordPrefix"`
}

type Config

type Config struct {
	Postgres Postgres `json:"postgres"`
	Gin      Gin      `json:"gin"`
	Logger   Logger   `json:"logger"`
	Auth     Auth     `json:"auth"`
}
var Setting Config

type Gin

type Gin struct {
	Address         string `json:"address"`
	Port            string `json:"port"`
	IsTLS           bool   `json:"isTls"`
	CertificateFile string `json:"certificateFile"`
	KeyFile         string `json:"keyFile"`
}

type Logger

type Logger struct {
	Level    string `json:"level"`
	Path     string `json:"path"`
	FileName string `json:"fileName"`
}

type Postgres

type Postgres struct {
	Host     string `json:"host"`
	Port     string `json:"port"`
	User     string `json:"user"`
	Password string `json:"password"`
	Database string `json:"database"`
	TimeZone string `json:"timezone"`
}

Jump to

Keyboard shortcuts

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