Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ProduceCache ¶
ProduceCache TODO: process header/body in pkg `cache`
func SelectRandomNode ¶
func SelectRandomNode(origin *config.OriginSource) (string, error)
Types ¶
type Origin ¶
type Origin struct {
// contains filtered or unexported fields
}
var DefaultOrigin *Origin
func (*Origin) ServeProxyHTTP ¶
func (o *Origin) ServeProxyHTTP(ctx *fasthttp.RequestCtx)
ServeProxyHTTP TODO: high performance tuning with `fasthttp`
Click to show internal directories.
Click to hide internal directories.