Documentation ¶
Overview ¶
API error interface and centralized collection of all errors return by server.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Add "secure" flag to auth cookies. SecureCookie bool )
Functions ¶
Types ¶
type AdminBoardAPIHandler ¶
type AdminBoardHandler ¶
type ApiError ¶
type ApiError struct {
// contains filtered or unexported fields
}
Error returned by API. Serialized to common shape understanable by frontend. Can also keep error from internal subsystems which is never shown to the user by might be e.g. logged for debugging purposes. TODO(Kagami): easyjson.
func (ApiError) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.