Documentation ¶
Index ¶
Constants ¶
View Source
const ( StatusSuccess = "success" StatusFailure = "failure" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ApiResponse ¶
func Format ¶
func Format(action string, err *er.WdbError, data interface{}, notices ...string) ApiResponse
func (ApiResponse) Marshal ¶
func (r ApiResponse) Marshal() []byte
type Error ¶
type Error struct { Code string `json:"code,omitempty"` Stack ErrorStack `json:"stack,omitempty"` }
type ErrorStack ¶
type ErrorStack []string
Click to show internal directories.
Click to hide internal directories.