Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HiveError ¶
type HiveError struct {
Path string `json:"path"`
Status int `json:"status"`
Title string `json:"title"`
Detail string `json:"detail"`
}
HiveError represent the server themisError format
func NewHiveBadRequestError ¶
NewHiveBadRequestError - create a new HiveError for a 400 themisError code //path is the endpoint where the themisError happened //detail is the themisError description
func NewHiveInternalServerError ¶
NewHiveInternalServerError - create a new HiveError for a 500 themisError code //path is the endpoint where the themisError happened //detail is the themisError description
func NewHiveUnauthorizedError ¶
NewHiveUnauthorizedError - create a new HiveError for a 401 themisError code //path is the endpoint where the themisError happened //detail is the themisError description
Click to show internal directories.
Click to hide internal directories.