Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
DB string `help:"the connection string for our database"`
LogLevel string `help:"the log level, one of error, warn, info, debug"`
SentryDSN string `help:"the sentry configuration to log errors to, if any"`
Version string `help:"the version being run"`
Password string `help:"the password for the admin user"`
Address string `help:"the address clover will listen on"`
Port int `help:"the port clover will listen on"`
}
Config is our top level configuration object
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a clover server, which handles incoming handle requests and configuration updates
func NewServer ¶
func NewServer(config *Config, fs http.FileSystem) *Server
NewServer creates a new clover server
Click to show internal directories.
Click to hide internal directories.