Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WSResponse ¶
type WSResponse struct { Data *interface{} `json:"data,omitempty"` Meta *map[string]interface{} `json:"meta,omitempty"` }
func CreateWSResponse ¶
func CreateWSResponse( data *interface{}, meta *map[string]interface{}, ) WSResponse
CreateWSResponse is a constructor for create an WS response. WSResponse is a struct with two field: data (store the WS's result) and meta (store the WS's metadata)
Click to show internal directories.
Click to hide internal directories.