package
Version:
v0.0.0-...-be98215
Opens a new window with list of versions in this module.
Published: Mar 14, 2016
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
func Encode(code int, result interface{}) []byte
result can ptr or value
type HeartBeat struct {
}
to common, websocket and tcp use the same
type Login struct {
Openid string `json:"openid"`
}
type Response struct {
Code int `json:"code"`
Service string `json:"service"`
Result interface{} `json:"result"`
}
response head
Source Files
¶
Click to show internal directories.
Click to hide internal directories.