Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Error ¶
type Error struct { Op Op Kind Kind // What kind of error is it? Err error // optional; The underlying error that triggered this one. }
Error represents what gets returned from the API's when something goes wrong.
func (Error) MarshalJSON ¶
type Kind ¶
type Kind string
Kind is an enum of the type of error
func (Kind) StatusCode ¶
StatusCode gets the HTTP code implied by the kind of error.
Click to show internal directories.
Click to hide internal directories.