server

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

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
}

Jump to

Keyboard shortcuts

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