Documentation ¶
Index ¶
- Constants
- func Init(config *config.Config)
- func Serve() error
- type Proxy
- func (p *Proxy) ListenAddr() string
- func (p *Proxy) ProxyHandler(ctx *fasthttp.RequestCtx)
- func (p *Proxy) PurgeCache(ctx *fasthttp.RequestCtx) error
- func (p *Proxy) Serve() error
- func (p *Proxy) ServeByCache(ctx *fasthttp.RequestCtx) error
- func (p *Proxy) ServeByOrigin(ctx *fasthttp.RequestCtx) error
- func (p *Proxy) ServeMux(ctx *fasthttp.RequestCtx) error
Constants ¶
View Source
const ServerToken = "hitori-cache-server"
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
var DefaultProxy *Proxy
func (*Proxy) ListenAddr ¶
func (*Proxy) ProxyHandler ¶
func (p *Proxy) ProxyHandler(ctx *fasthttp.RequestCtx)
func (*Proxy) PurgeCache ¶
func (p *Proxy) PurgeCache(ctx *fasthttp.RequestCtx) error
func (*Proxy) ServeByCache ¶
func (p *Proxy) ServeByCache(ctx *fasthttp.RequestCtx) error
func (*Proxy) ServeByOrigin ¶
func (p *Proxy) ServeByOrigin(ctx *fasthttp.RequestCtx) error
Click to show internal directories.
Click to hide internal directories.