Documentation ¶ Index ¶ Constants func GenRequestID() string func NewProxy(cacher cache.BookCacher) (http.Handler, error) func RunServer(port string) error type Proxy func (p *Proxy) ServeHTTP(w http.ResponseWriter, r *http.Request) type SrvHandle func (s *SrvHandle) GetAuthorInfo(ctx *gin.Context) Constants ¶ View Source const API_ROOT = "https://api.gitbook.com/" Variables ¶ This section is empty. Functions ¶ func GenRequestID ¶ func GenRequestID() string func NewProxy ¶ func NewProxy(cacher cache.BookCacher) (http.Handler, error) func RunServer ¶ func RunServer(port string) 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 { // contains filtered or unexported fields } func (*SrvHandle) GetAuthorInfo ¶ func (s *SrvHandle) GetAuthorInfo(ctx *gin.Context) Source Files ¶ View all Source files lib.goproxy.goroot.goroute.go Click to show internal directories. Click to hide internal directories.