Documentation ¶ Index ¶ Constants func NewProxy(cacher cache.BookCacher) (http.Handler, error) func RunServer(port string) (err error) type Proxy func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) type SrvHandle Constants ¶ View Source const API_ROOT = "https://api.gitbook.com/" Variables ¶ This section is empty. Functions ¶ func NewProxy ¶ func NewProxy(cacher cache.BookCacher) (http.Handler, error) func RunServer ¶ func RunServer(port string) (err error) Types ¶ type Proxy ¶ type Proxy struct { // contains filtered or unexported fields } func (*Proxy) ServeHTTP ¶ func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) type SrvHandle ¶ type SrvHandle struct { *http.Server } Source Files ¶ View all Source files proxy.goroot.go Click to show internal directories. Click to hide internal directories.