Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiError ¶
type ApiError struct { Message string `json:"message,omitempty" ` Response string `json:"response,omitempty" ` }
func ApiDefaultError ¶
type ApiMessage ¶
type ApiMessage struct { Message string `json:"message,omitempty" ` Response string `json:"response,omitempty" ` Data interface{} `json:"data,omitempty"` }
func ApiDefault ¶ added in v0.5.5
func ApiDefault() *ApiMessage
func ApiDefaultMsgOnly ¶
func ApiDefaultMsgOnly(message string) *ApiMessage
func ApiDefaultMsgResponse ¶
func ApiDefaultMsgResponse(data interface{}, message string) *ApiMessage
func ApiDefaultResponse ¶
func ApiDefaultResponse(data interface{}) *ApiMessage
Click to show internal directories.
Click to hide internal directories.