boxcars: github.com/azer/boxcars Index | Files | Directories

package boxcars

import "github.com/azer/boxcars"

Index

Package Files

debug.go handler.go handlers-of.go match.go on-request.go secure.go server.go servers.go single-file-server.go sites.go static-server.go

func Listen Uses

func Listen(port int)

func OnRequest Uses

func OnRequest(w http.ResponseWriter, r *http.Request)

func ReverseProxyServer Uses

func ReverseProxyServer(uri string) http.Handler

func Secure Uses

func Secure(uid, gid int)

func SetupSites Uses

func SetupSites(config map[string]map[string]string)

type Handler Uses

type Handler struct {
    // contains filtered or unexported fields
}

type Handlers Uses

type Handlers map[string]*Handler

type SingleFileServer Uses

type SingleFileServer struct {
    // contains filtered or unexported fields
}

func (*SingleFileServer) ServeHTTP Uses

func (server *SingleFileServer) ServeHTTP(w http.ResponseWriter, r *http.Request)

type Sites Uses

type Sites map[string]Handlers

type StaticHandler Uses

type StaticHandler struct {
    http.ResponseWriter
    // contains filtered or unexported fields
}

func (*StaticHandler) Write Uses

func (handler *StaticHandler) Write(b []byte) (int, error)

func (*StaticHandler) WriteHeader Uses

func (handler *StaticHandler) WriteHeader(n int)

type StaticServer Uses

type StaticServer struct {
    // contains filtered or unexported fields
}

func (*StaticServer) ServeHTTP Uses

func (server *StaticServer) ServeHTTP(writer http.ResponseWriter, request *http.Request)

Directories

PathSynopsis
boxcars
json-config

Package boxcars imports 10 packages (graph) and is imported by 5 packages. Updated 2016-08-01. Refresh now. Tools for package owners.