Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendObject ¶
Types ¶
type ServerError ¶
type ServerError struct { Code int `json:"code,omitempty"` Message string `json:"message,omitempty"` }
ServerError describes the error that occurred in server. `Code` is a integer error code, `Message` is the error message.
func (*ServerError) Error ¶
func (e *ServerError) Error() string
type ServerLog ¶
type ServerLog struct { Message string `json:"msg,omitempty"` Error *ServerError `json:"err,omitempty"` Object interface{} `json:"obj,omitempty"` }
ServerLog describes log messages generated from server and should display in client. It also contains a error message to indicate server failure.
Click to show internal directories.
Click to hide internal directories.