Versions in this module Expand all Collapse all v1 v1.0.1 Feb 28, 2014 Changes in this version + var DefaultTypes = []string + func SplitHostPort(hostPort string, defaultPort int) (string, int) + type CompressionFilter struct + func NewCompressionFilter(types []string) *CompressionFilter + func (c *CompressionFilter) FilterResponse(request *falcore.Request, res *http.Response) + type DateFilter struct + func (f *DateFilter) FilterResponse(request *falcore.Request, res *http.Response) + type EtagFilter struct + func (f *EtagFilter) FilterResponse(request *falcore.Request, res *http.Response) + type FileFilter struct + BasePath string + DirectoryIndex string + PathPrefix string + func (f *FileFilter) FilterRequest(req *falcore.Request) (res *http.Response) + type HandlerFilter struct + func NewHandlerFilter(handler http.Handler) *HandlerFilter + func (h *HandlerFilter) FilterRequest(req *falcore.Request) *http.Response + type StringBody struct + BodyBuffer *bytes.Reader + func (sb *StringBody) Close() error + func (sb *StringBody) Read(b []byte) (n int, err error) + type StringBodyFilter struct + func NewStringBodyFilter() *StringBodyFilter + func (sbf *StringBodyFilter) FilterRequest(request *falcore.Request) *http.Response + func (sbf *StringBodyFilter) FilterResponse(request *falcore.Request, res *http.Response) + func (sbf *StringBodyFilter) ReturnBuffer(request *falcore.Request) + type Throttler struct + Condition func(req *falcore.Request) bool + func NewThrottler(RPS int) *Throttler + func (t *Throttler) FilterRequest(req *falcore.Request) *http.Response + func (t *Throttler) Pending() int64 + func (t *Throttler) SetRPS(RPS int) + func (t *Throttler) StartReporter(name string, interval time.Duration) + type Upstream struct + ForceHttp bool + Name string + PingPath string + Transport *UpstreamTransport + func NewUpstream(transport *UpstreamTransport) *Upstream + func (u *Upstream) FilterRequest(request *falcore.Request) (res *http.Response) + func (u *Upstream) MaxConcurrent() int64 + func (u *Upstream) QueueLength() int64 + func (u *Upstream) SetMaxConcurrent(max int64) + type UpstreamEntry struct + Upstream *Upstream + Weight int + type UpstreamPool struct + Name string + func NewUpstreamPool(name string, upstreams []*UpstreamEntry) *UpstreamPool + func (up UpstreamPool) FilterRequest(req *falcore.Request) (res *http.Response) + func (up UpstreamPool) LogStatus() + func (up UpstreamPool) Next() *UpstreamEntry + func (up UpstreamPool) Shutdown() + type UpstreamTransport struct + DNSCacheDuration time.Duration + func NewUpstreamTransport(host string, port int, timeout time.Duration, transport *http.Transport) *UpstreamTransport