Documentation ¶
Index ¶
- func GetURLPathParts(url *url.URL) []string
- func HandleErrorResponse(responseWriter http.ResponseWriter, request *http.Request, statusCode int, ...) error
- func HandleResponse(responseWriter http.ResponseWriter, request *http.Request, statusCode int, ...) error
- type ErrorResponse
- type Response
- type Worker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetURLPathParts ¶
func HandleErrorResponse ¶
func HandleResponse ¶
Types ¶
type ErrorResponse ¶
type ErrorResponse struct { Response Method string `json:"method"` URL string `json:"url"` Error string `json:"error"` }
func GetErrorResponse ¶
func GetErrorResponse(detail string, method string, url string, err error) ErrorResponse
type Response ¶
func GetSuccessResponse ¶
Click to show internal directories.
Click to hide internal directories.