Documentation ¶
Index ¶
- func AutoRender(w http.ResponseWriter, data interface{}, err error)
- func ParseIP(ip string, block *net.IPNet) string
- func PrivateIP(ip string, Nats []g.NAT) string
- func RenderDataJson(w http.ResponseWriter, data interface{})
- func RenderJson(w http.ResponseWriter, v interface{})
- func RenderMsgJson(w http.ResponseWriter, msg string)
- func Start()
- type Dto
- type Endpoint
- type ResponseEndpoints
- type ResponseHost
- type ResponseHostId
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AutoRender ¶
func AutoRender(w http.ResponseWriter, data interface{}, err error)
func RenderDataJson ¶
func RenderDataJson(w http.ResponseWriter, data interface{})
func RenderJson ¶
func RenderJson(w http.ResponseWriter, v interface{})
func RenderMsgJson ¶
func RenderMsgJson(w http.ResponseWriter, msg string)
Types ¶
type ResponseEndpoints ¶
type ResponseEndpoints struct {
Items []ResponseHost `json:"items,omitempty"`
}
type ResponseHost ¶
type ResponseHostId ¶
Click to show internal directories.
Click to hide internal directories.