Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrServerError is internal server error. ErrServerError = errors.New("Internal Server Error") // ErrBadRequest is bad request error. ErrBadRequest = errors.New("Bad Request") )
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the system RESTFul web server.
func NewServer ¶
func NewServer(addr string, sysControl *system.SysController, statsControl *system.StatsController, cfg *g.GlobalConfig) *Server
NewServer inits a system RESTful web server.
Click to show internal directories.
Click to hide internal directories.