env

package
v1.1.31 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2023 License: MIT Imports: 4 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

	// Serializer is message serializer, json or protobuf
	SerializerType serializer.SerializerType

	// 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
)

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