handler

package
v0.0.0-...-0378f4a Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2018 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Ping

type Ping struct {
	// contains filtered or unexported fields
}

func NewPing

func NewPing(logger func(v ...interface{})) *Ping

func (*Ping) ServeHTTP

func (s *Ping) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type Proxy

type Proxy struct {
	// contains filtered or unexported fields
}

func NewProxy

func NewProxy(cache *cache.LRUCache, logger func(v ...interface{}), contentLength int64, ping *Ping, stats *Stats) *Proxy

func (*Proxy) ProxyHTTPS

func (p *Proxy) ProxyHTTPS(rw http.ResponseWriter, req *http.Request)

func (*Proxy) ServeHTTP

func (p *Proxy) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type Stats

type Stats struct {
	// contains filtered or unexported fields
}

func NewStats

func NewStats(c *cache.LRUCache, logger func(v ...interface{})) *Stats

func (*Stats) Endpoint

func (s *Stats) Endpoint() *StatsResponse

func (*Stats) ServeHTTP

func (s *Stats) ServeHTTP(resp http.ResponseWriter, req *http.Request)

type StatsResponse

type StatsResponse struct {
	Length   int64     `json:"length"`
	Size     int64     `json:"size"`
	Capacity int64     `json:"capacity"`
	Oldest   time.Time `json:"oldest"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL