configs

package
v1.1.12-alpha Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ENV_PRO production environment
	ENV_PRO = "production"
	// ENV_DEV dev environment
	ENV_DEV = "dev"
	// ENV_TEST test environment
	ENV_TEST = "test"
)
View Source
const (
	// CONSOLE_LISTEN default value of console listen ip
	CONSOLE_LISTEN = "0.0.0.0"
	// CONSOLE_PORT default value of console listen port
	CONSOLE_PORT = "9999"
	// CLUSTER_NAME default value of cluster name
	CLUSTER_NAME = "cluster"
)
View Source
const (
	// APP application name
	APP = "binlogo"
)

Variables

View Source
var BuildTime string
View Source
var GoVersion string
View Source
var NodeIP net.IP

NodeIP current node's ip

View Source
var NodeName string

NodeName current node's name

View Source
var Version string

Functions

func Init added in v1.1.3

func Init(file string)

Init init configs

func InitGoTest added in v1.1.3

func InitGoTest()

InitGoTest init environment for testing

Types

type Env

type Env string

Env use for ENV

var ENV Env

ENV global environment

Jump to

Keyboard shortcuts

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