env

package
v1.1.106 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

env represents the environment of the current process, includes work path and config path etc.

Index

Constants

This section is empty.

Variables

View Source
var (
	// Wd is working path
	Wd string

	// Die waits for end application
	Die chan bool

	// ConnDie waits for application die
	ConnDie chan bool

	// Debug enables Debug mode
	Debug bool

	// SafeMode enable Safe mode
	Safe bool

	// TimerPrecision indicates the precision of timer, default is time.Second
	TimerPrecision = time.Second

	// GrpcOptions is options for grpc
	GrpcOptions = []grpc.DialOption{grpc.WithInsecure()}

	// Version
	Version string

	// ShortVersion is short for Version
	ShortVersion uint32

	// SnowflakeNode is snowflake node
	SnowflakeNode *snowflake.Node

	// WebSocketCompression enables message compression
	WebSocketCompression bool
)

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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