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.
Click to show internal directories.
Click to hide internal directories.