{"modulePath":"go.sebtobie.de/httpserver/command","version":"v0.0.0-20221113094052-d744ff82057d","isLatest":true,"isStandardLibrary":false,"goos":"all","goarch":"all","docs":"# package command\n\nPackage command is a small module for setting up an small development server.\n\n## Functions\n\n```go\nfunc Server(config string, sites ...Site) (s *httpserver.Server, err error)\n```\nServer 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\n\n## Types\n\n```go\ntype Site struct {\n\t// Config is the name of the mapitem with the config\n\tConfig string\n\t// Site is the site itself\n\tSite httpserver.Site\n}\n```\nSite is an simple type for wrapping sites and their config paths in the absence of an \\*\\*kwargs equivalent.\n\n","path":"go.sebtobie.de/httpserver/command","name":"command","synopsis":"Package command is a small module for setting up an small development server.","isRedistributable":true}
