Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Data ¶
type Data struct { Service string `json:"service"` Description string `json:"description"` Time string `json:"time"` Host string `json:"host"` Method string `json:"method"` Result bool `json:"result"` Error string `json:"error"` Data interface{} `json:"data"` }
Data Response json data
func NewResponseData ¶
func NewResponseData(req *fasthttp.RequestCtx, service string, descr string) *Data
NewResponseData Make new struct
type Response ¶
type Response struct {
// contains filtered or unexported fields
}
Response is used for simple answ to client
func NewResponse ¶
func NewResponse(writer *fasthttp.RequestCtx, service string, descr string) *Response
NewResponse make new struct
Click to show internal directories.
Click to hide internal directories.