Documentation ¶
Index ¶
- Constants
- Variables
- func ClusterCreate(w http.ResponseWriter, r *http.Request)
- func ClusterList(w http.ResponseWriter, r *http.Request)
- func GetServeMux() *http.ServeMux
- func GetServer() *http.Server
- func NewStreamWriter(w http.ResponseWriter) io.Writer
- type Clusters
- type Dir
- type StreamWriter
- type VarHandler
- type VarHandlerFunc
- type VarServeMux
Constants ¶
View Source
const ( DefaultRootPath = "/" DefaultListClusterSize = 10 )
Variables ¶
View Source
var ( ErrMethodNotFound = errors.New("Method not Allowed") ErrBadRequest = errors.New("Bad Request") ErrNotImplemented = errors.New("Not Implemented") )
View Source
var (
ErrNoCandidateFound = errors.New("No candidate found")
)
Functions ¶
func ClusterCreate ¶
func ClusterCreate(w http.ResponseWriter, r *http.Request)
func ClusterList ¶
func ClusterList(w http.ResponseWriter, r *http.Request)
func GetServeMux ¶
func NewStreamWriter ¶
func NewStreamWriter(w http.ResponseWriter) io.Writer
Types ¶
type StreamWriter ¶
type StreamWriter struct {
// contains filtered or unexported fields
}
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)
Click to show internal directories.
Click to hide internal directories.