Documentation
¶
Overview ¶
Package command is a small module for setting up an small development server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Server ¶
func Server(config string, sites ...Site) (s *httpserver.Server, err error)
Server returns a initialized and configured Server. custom authentication handlers are not configurable, since the server is preped for startup Returns nil on errors and creates the config if the file does not exist, in the later case server and error are nil The only middleware that is set up is: - db.Middleware - middleware.LogMiddleware
Types ¶
type Site ¶
type Site struct {
// Config is the name of the mapitem with the config
Config string
// Site is the site itself
Site httpserver.Site
}
Site is an simple type for wrapping sites and their config paths in the absence of an **kwargs equivalent.
Click to show internal directories.
Click to hide internal directories.