api

package
v0.0.0-...-ff21fab Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetServeMux

func GetServeMux() *http.ServeMux

func GetServer

func GetServer() *http.Server

func NewStreamWriter

func NewStreamWriter(w http.ResponseWriter) io.Writer

Types

type StreamWriter

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

func (*StreamWriter) Write

func (s *StreamWriter) Write(data []byte) (n int, err error)

type VarHandler

type VarHandler interface {
	ServeHTTP(w http.ResponseWriter, r *http.Request, args []string)
}

type VarHandlerFunc

type VarHandlerFunc func(http.ResponseWriter, *http.Request, []string)

func (VarHandlerFunc) ServeHTTP

func (n VarHandlerFunc) ServeHTTP(w http.ResponseWriter, r *http.Request, args []string)

type VarServeMux

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

func (*VarServeMux) Handle

func (v *VarServeMux) Handle(pattern string, handler VarHandler)

func (*VarServeMux) HandleFunc

func (v *VarServeMux) HandleFunc(pattern string, handler func(http.ResponseWriter, *http.Request, []string))

func (*VarServeMux) ServeHTTP

func (v *VarServeMux) ServeHTTP(w http.ResponseWriter, r *http.Request)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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