constants

package
v0.0.0-...-01003e4 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GrpcPort   = "GRPC_PORT"
	HttpPort   = "HTTP_PORT"
	ConfigPath = "CONFIG_PATH"
	JaegerHost = "JAEGER_HOST"
	JaegerPort = "JAEGER_PORT"
	RedisAddr  = "REDIS_ADDR"
	Yaml       = "yaml"
	Json       = "json"

	GRPC     = "GRPC"
	METHOD   = "METHOD"
	NAME     = "NAME"
	METADATA = "METADATA"
	REQUEST  = "REQUEST"
	REPLY    = "REPLY"
	TIME     = "TIME"
)
View Source
const (
	MaxHeaderBytes       = 1 << 20
	StackSize            = 1 << 10 // 1 KB
	BodyLimit            = "2M"
	ReadTimeout          = 15 * time.Second
	WriteTimeout         = 15 * time.Second
	GzipLevel            = 5
	WaitShotDownDuration = 3 * time.Second
	EnvDev               = "dev"
	EnvTest              = "test"
	EnvProd              = "prod"
)

Variables

This section is empty.

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