Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Problem ¶
type Problem struct { Type string `json:"type"` Title string `json:"title"` Status int `json:"status,omitempty"` Detail string `json:"detail,omitempty"` Instance string `json:"instance,omitempty"` }
Problem in RFC-7807 format
func NewAPIProblem ¶
func NewAPIProblem(url string, title string, instance string, apiResp *http.Response, err error) *Problem
NewAPIProblem creates a Problem based on either a HTTP resp or an error
func NewCQLProblem ¶
NewCQLProblem a helper for wrapping errors from gocql
Click to show internal directories.
Click to hide internal directories.