Documentation ¶
Index ¶
- func ConfigureLoggers()
- type Cache
- type CacheDeleteEvent
- type CacheEntry
- type CacheUpdateEvent
- type ControlServer
- type EtchContextData
- type Event
- type Listeners
- type LogFormatter
- type ProxyServer
- func (proxy *ProxyServer) FixStatusCode(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response
- func (proxy *ProxyServer) GuardRequest(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response)
- func (proxy *ProxyServer) PrepareRangedRequest(req *http.Request, ctx *goproxy.ProxyCtx) (*http.Request, *http.Response)
- func (proxy *ProxyServer) RestoreCache(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response
- func (proxy *ProxyServer) Setup()
- func (proxy *ProxyServer) StoreCache(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response
- func (proxy *ProxyServer) UnguardRequest(resp *http.Response, ctx *goproxy.ProxyCtx) *http.Response
- type RequestMutex
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ConfigureLoggers ¶
func ConfigureLoggers()
Types ¶
type CacheDeleteEvent ¶
func (CacheDeleteEvent) Json ¶
func (e CacheDeleteEvent) Json() ([]byte, error)
type CacheEntry ¶
func (*CacheEntry) Delete ¶
func (cacheEntry *CacheEntry) Delete() error
func (*CacheEntry) FreshenContent ¶
func (*CacheEntry) GetContent ¶
func (cacheEntry *CacheEntry) GetContent() ([]byte, time.Time, error)
type CacheUpdateEvent ¶
func (CacheUpdateEvent) Json ¶
func (e CacheUpdateEvent) Json() ([]byte, error)
type ControlServer ¶
type ControlServer struct { *http.ServeMux Proxy *ProxyServer }
func NewControlServer ¶
func NewControlServer(proxy *ProxyServer) *ControlServer
func (*ControlServer) Setup ¶
func (control *ControlServer) Setup()
type EtchContextData ¶
type LogFormatter ¶
type LogFormatter struct{}
type ProxyServer ¶
type ProxyServer struct { goproxy.ProxyHttpServer Cache *Cache RequestMutex *RequestMutex *Listeners }
func NewProxyServer ¶
func NewProxyServer(cacheDir string) *ProxyServer
func (*ProxyServer) FixStatusCode ¶
func (*ProxyServer) GuardRequest ¶
func (*ProxyServer) PrepareRangedRequest ¶
func (*ProxyServer) RestoreCache ¶
func (*ProxyServer) Setup ¶
func (proxy *ProxyServer) Setup()
func (*ProxyServer) StoreCache ¶
func (*ProxyServer) UnguardRequest ¶
type RequestMutex ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.