README ¶ gate golang package gate is a HTTP proxy. Expand ▾ Collapse ▴ Documentation ¶ Index ¶ type Gate func NewGate() *Gate func (g *Gate) Clear() func (g *Gate) Delete(pattern string) func (g *Gate) Map(pattern string, h *Host) func (g *Gate) ServeHTTP(w http.ResponseWriter, r *http.Request) type Host func NewHost() *Host func (h *Host) Clear() func (h *Host) Delete(pattern string) func (h *Host) Map(pattern, destURL string) error func (h *Host) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Gate ¶ type Gate struct { // contains filtered or unexported fields } func NewGate ¶ func NewGate() *Gate func (*Gate) Clear ¶ func (g *Gate) Clear() func (*Gate) Delete ¶ func (g *Gate) Delete(pattern string) func (*Gate) Map ¶ func (g *Gate) Map(pattern string, h *Host) func (*Gate) ServeHTTP ¶ func (g *Gate) ServeHTTP(w http.ResponseWriter, r *http.Request) type Host ¶ type Host struct { // contains filtered or unexported fields } func NewHost ¶ func NewHost() *Host func (*Host) Clear ¶ func (h *Host) Clear() func (*Host) Delete ¶ func (h *Host) Delete(pattern string) func (*Host) Map ¶ func (h *Host) Map(pattern, destURL string) error func (*Host) ServeHTTP ¶ func (h *Host) ServeHTTP(w http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files gate.go Click to show internal directories. Click to hide internal directories.