Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseEncoder ¶
func ResponseEncoder(w http.ResponseWriter, r *http.Request, data interface{}) error
func ResponsePack ¶
func ResponsePack() middleware.Middleware
Types ¶
type Option ¶
type Option func(h *ServiceHttp)
type Response ¶
type Response struct { Code int `protobuf:"bytes,1,opt,name=code,proto3" json:"code,omitempty"` Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"` Data interface{} `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"` // contains filtered or unexported fields }
type ServiceHttp ¶
type ServiceHttp struct {
// contains filtered or unexported fields
}
func (*ServiceHttp) ConfPrefix ¶
func (h *ServiceHttp) ConfPrefix() string
func (*ServiceHttp) Name ¶
func (h *ServiceHttp) Name() string
func (*ServiceHttp) Unload ¶
func (h *ServiceHttp) Unload() error
func (*ServiceHttp) Weight ¶
func (h *ServiceHttp) Weight() int
Click to show internal directories.
Click to hide internal directories.