config

package
v0.0.0-...-1cfe538 Latest Latest
Warning

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

Go to latest
Published: Oct 5, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DebugMode indicates service mode is debug.
	DebugMode = "debug"
	// TestMode indicates service mode is test.
	TestMode = "test"
	// ReleaseMode indicates service mode is release.
	ReleaseMode = "release"

	ErrorModel = "!!!Error"
	ErrorStyle = "--->"

	// service name
	SvcsUser = "UserService"

	PostgresCtxTimeout = time.Second * 30       // postgres context timeout 30s
	PostgresLogTime    = time.Millisecond * 500 // postgres context timeout 500ms
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	ServiceName string
	Environment string // debug, test, release
	Version     string

	BotToken string

	PostgresHost           string
	PostgresPort           int
	PostgresUser           string
	PostgresPassword       string
	PostgresDatabase       string
	PostgresMaxConnections int32

	HTTPPort   string
	HTTPScheme string
}

func Load

func Load() Config

Load ...

Jump to

Keyboard shortcuts

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