Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInternal = &APIError{ HTTPStatusCode: http.StatusInternalServerError, Message: "Internal Server Error", } ErrNotFound = &APIError{ HTTPStatusCode: http.StatusNotFound, Message: "Resource Not found", } ErrBadRequest = &APIError{ HTTPStatusCode: http.StatusBadRequest, Message: "Bad Request", } ErrRender = &APIError{ HTTPStatusCode: http.StatusUnprocessableEntity, Message: "Error Rendering Response", } ErrTimeout = &APIError{ HTTPStatusCode: http.StatusRequestTimeout, Message: "Query timeout", } ErrCancelled = &APIError{ HTTPStatusCode: http.StatusBadRequest, Message: "Query cancelled", } )
Functions ¶
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
func (*Server) AddMiddlewares ¶
func (*Server) InitializeRoutes ¶
func (s *Server) InitializeRoutes()
type ServerError ¶
type ServerError struct { Err error // contains filtered or unexported fields }
func (*ServerError) Error ¶
func (se *ServerError) Error() string
Click to show internal directories.
Click to hide internal directories.