Documentation ¶ Index ¶ type ErrorResponse type Server func New(l *zap.Logger, router *mux.Router, addr string) *Server func (s *Server) Run(ctx context.Context) error func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type ErrorResponse ¶ type ErrorResponse struct { Error string `json:"error"` } type Server ¶ added in v0.3.0 type Server struct { // contains filtered or unexported fields } func New ¶ func New(l *zap.Logger, router *mux.Router, addr string) *Server func (*Server) Run ¶ added in v0.3.0 func (s *Server) Run(ctx context.Context) error func (*Server) ServeHTTP ¶ added in v0.3.0 func (s *Server) ServeHTTP(w http.ResponseWriter, r *http.Request) Source Files ¶ View all Source files routes.go server.go Directories ¶ Show internal Expand all Path Synopsis middlewares Click to show internal directories. Click to hide internal directories.