Documentation
¶
Index ¶
Constants ¶
View Source
const (
// UsingCachingValue using cached value to response
UsingCachingValue = "__using_cache_value__"
)
Variables ¶
This section is empty.
Functions ¶
func NewCachedValue ¶
NewCachedValue returns a cached value
func ParseCachedValue ¶
ParseCachedValue returns cached value as content-type and body value
Types ¶
type BaseFilter ¶
type BaseFilter struct{}
BaseFilter base filter support default implemention
type Context ¶
type Context interface {
StartAt() time.Time
EndAt() time.Time
OriginRequest() *fasthttp.RequestCtx
ForwardRequest() *fasthttp.Request
Response() *fasthttp.Response
API() *metapb.API
DispatchNode() *metapb.DispatchNode
Server() *metapb.Server
Analysis() *util.Analysis
SetAttr(key string, value interface{})
GetAttr(key string) interface{}
}
Context filter context
Click to show internal directories.
Click to hide internal directories.