Documentation ¶
Index ¶
- Constants
- func Get(key string, c *app.RequestContext) (val any, found bool)
- func GetBool(key string, c *app.RequestContext) bool
- func GetFloat32(key string, c *app.RequestContext) float32
- func GetFloat64(key string, c *app.RequestContext) float64
- func GetInt32(key string, c *app.RequestContext) int32
- func GetInt64(key string, c *app.RequestContext) int64
- func GetString(key string, c *app.RequestContext) string
- func IsDirective(key string) bool
- type ReqInfo
Constants ¶
View Source
const ( ServerID = "$server_id" RouteID = "$route_id" ServiceID = "$service_id" RemoteAddr = "$remote_addr" Host = "$host" Time = "$time" ReceivedSize = "$received_size" SendSize = "$send_size" Status = "$status" Request = "$request" RequestInfo = "$request_info" RequestProtocol = "$request_protocol" RequestMethod = "$request_method" RequestURI = "$request_uri" RequestPath = "$request_path" RequestPathAlias = "$request_path_alias" RequestBody = "$request_body" Duration = "$duration" LogTime = "$log_time" Upstream = "$upstream" UpstreamID = "$upstream_id" UpstreamURI = "$upstream_uri" UpstreamMethod = "$upstream_method" UpstreamProtocol = "$upstream_protocol" UpstreamPath = "$upstream_path" UpstreamPathAlias = "$upstream_path_alias" UpstreamAddr = "$upstream_addr" UpstreamDuration = "$upstream_duration" UpstreamStatus = "$upstream_status" TraceID = "$trace_id" Allow = "$allow" ClientIP = "$client_ip" UserAgent = "$user_agent" TargetTimeout = "target_timeout" // grpc GRPCStatus = "$grpc_status" GRPCMessage = "$grpc_message" B = 1 KB = 1024 * B MB = 1024 * KB GB = 1024 * MB )
Variables ¶
This section is empty.
Functions ¶
func GetFloat32 ¶
func GetFloat32(key string, c *app.RequestContext) float32
func GetFloat64 ¶
func GetFloat64(key string, c *app.RequestContext) float64
func IsDirective ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.