Documentation ¶ Index ¶ type Server func New(cfg *config.Config, mux *web.Mux, cl client.IFace) (srv *Server) func NewDefault() (srv *Server) func (srv *Server) BindMux() *Server func (srv *Server) Serve() func (srv *Server) Use(mdl ...web.MiddlewareType) *Server Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Server ¶ type Server struct { Client client.IFace // contains filtered or unexported fields } func New ¶ func New(cfg *config.Config, mux *web.Mux, cl client.IFace) (srv *Server) func NewDefault ¶ func NewDefault() (srv *Server) func (*Server) BindMux ¶ func (srv *Server) BindMux() *Server func (*Server) Serve ¶ func (srv *Server) Serve() func (*Server) Use ¶ func (srv *Server) Use(mdl ...web.MiddlewareType) *Server Source Files ¶ View all Source files server.go Directories ¶ Show internal Expand all Path Synopsis demo handlers middleware Click to show internal directories. Click to hide internal directories.