Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTTPController ¶
type HTTPController interface {
ServeHTTP(writer http.ResponseWriter, request *http.Request)
}
HTTPController web controller object, for server.New init.
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server type contains http server and controller methods.
func New ¶
func New(routes *map[string]HTTPController, config Config) *Server
New returns an initialized server struct.
Click to show internal directories.
Click to hide internal directories.