Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProxyHandler ¶
func ProxyHandler(c *fiber.Ctx) error
Types ¶
type CacheProxy ¶
type CacheProxy struct {
// contains filtered or unexported fields
}
func NewCacheProxy ¶
func NewCacheProxy(key string, ttl time.Duration) *CacheProxy
func (CacheProxy) Accept ¶
func (p CacheProxy) Accept(key string) bool
func (CacheProxy) Proxy ¶
func (p CacheProxy) Proxy(c *fiber.Ctx) error
type LimitProxy ¶
type LimitProxy struct {
// contains filtered or unexported fields
}
func NewLimitProxy ¶
func NewLimitProxy(key string, limit int, ttl time.Duration) *LimitProxy
func (LimitProxy) Accept ¶
func (p LimitProxy) Accept(key string) bool
func (LimitProxy) Proxy ¶
func (p LimitProxy) Proxy(c *fiber.Ctx) error
Click to show internal directories.
Click to hide internal directories.