Documentation ¶
Index ¶
Constants ¶
View Source
const ( DEBUG string = "DEBUG" INFO string = "INFO" WARNING string = "WARN" ERROR string = "ERROR" FATAL string = "FATAL" )
Log levels
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct { Router *httprouter.Router Config ServerConfig }
Server is the REST API server for Minimal Chat
func Initialize ¶
func Initialize(ds *store.InMemory, config ServerConfig) *Server
Listen starts listening on `port` and `host`
Click to show internal directories.
Click to hide internal directories.