env

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2021 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

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

	// GlobalTicker represents global ticker that all cron job will be executed
	// in globalTicker.
	GlobalTicker *time.Ticker

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

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

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

	// Version
	Version string

	// ShortVersion is short for Version
	ShortVersion uint32
)

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