Documentation
¶
Index ¶
- Variables
- func ReleaseKey(key *Key)
- func ReleaseValidator(v *Validator)
- type CustomHeaders
- type Key
- type Proxy
- func (m *Proxy) HandleCacheDump(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleCacheDumpKeys(c *fiber.Ctx) (_ error)
- func (m *Proxy) HandleCachePurge(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleCachePurgeAll(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleCacheStats(c *fiber.Ctx) (_ error)
- func (m *Proxy) HandleCacheStatsReset(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleProxyToCache(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleProxyToDst(c *fiber.Ctx) (e error)
- func (m *Proxy) HandleRandomRelease(c *fiber.Ctx) (e error)
- func (*Proxy) IsCacheBypass(c *fiber.Ctx) bool
- func (m *Proxy) IsRequestCached(c *fiber.Ctx) (ok bool)
- func (m *Proxy) MiddlewareInternalApi(c *fiber.Ctx) (_ error)
- func (m *Proxy) MiddlewareValidation(c *fiber.Ctx) (e error)
- func (m *Proxy) ProxyCachedRequest(c *fiber.Ctx) (e error)
- func (m *Proxy) ProxyFiberRequest(c *fiber.Ctx) (e error)
- type ProxyClient
- type ProxyConfig
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var CHtos = map[CustomHeaders]string{ CHCacheKeyOverride: "X-CacheKey-Override", CHCacheKeyPrefix: "X-CacheKey-Prefix", CHCacheKeySuffix: "X-CacheKey-Suffix", CHCacheBypass: "X-Cache-Bypass", }
View Source
var Stoch = map[string]CustomHeaders{ "X-CacheKey-Override": CHCacheKeyOverride, "X-CacheKey-Prefix": CHCacheKeyPrefix, "X-CacheKey-Suffix": CHCacheKeySuffix, "X-Cache-Bypass": CHCacheBypass, }
Functions ¶
func ReleaseKey ¶
func ReleaseKey(key *Key)
func ReleaseValidator ¶ added in v1.0.6
func ReleaseValidator(v *Validator)
Types ¶
type CustomHeaders ¶ added in v1.0.2
type CustomHeaders uint8
const ( CHCacheKeyOverride CustomHeaders = 1 << iota CHCacheKeyPrefix CHCacheKeySuffix CHCacheBypass )
type Key ¶
type Key struct {
// contains filtered or unexported fields
}
func AcquireKey ¶
func AcquireKey() *Key
func (*Key) UnsafeHeadersKey ¶ added in v1.0.15
func (*Key) UnsafeString ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
func (*Proxy) HandleCacheDump ¶ added in v1.0.2
func (*Proxy) HandleCacheDumpKeys ¶ added in v1.0.2
func (*Proxy) HandleCachePurge ¶ added in v1.0.2
func (*Proxy) HandleCachePurgeAll ¶ added in v1.0.2
func (*Proxy) HandleCacheStats ¶ added in v1.0.2
func (*Proxy) HandleCacheStatsReset ¶ added in v1.0.2
func (*Proxy) HandleProxyToCache ¶
func (*Proxy) HandleProxyToDst ¶
func (*Proxy) HandleRandomRelease ¶ added in v1.0.10
func (*Proxy) IsCacheBypass ¶ added in v1.0.2
func (*Proxy) IsRequestCached ¶
func (*Proxy) MiddlewareInternalApi ¶ added in v1.0.2
func (*Proxy) MiddlewareValidation ¶
func (*Proxy) ProxyCachedRequest ¶
func (*Proxy) ProxyFiberRequest ¶
type ProxyClient ¶
type ProxyClient struct {
*fasthttp.HostClient
}
func NewClient ¶
func NewClient(c *cli.Context) *ProxyClient
type ProxyConfig ¶
type ProxyConfig struct {
// contains filtered or unexported fields
}
type Validator ¶
type Validator struct { *fiber.Ctx // contains filtered or unexported fields }
func AcquireValidator ¶ added in v1.0.6
func (*Validator) IsQueryEqual ¶ added in v1.0.10
func (*Validator) ValidateRequest ¶
Click to show internal directories.
Click to hide internal directories.