Documentation
¶
Index ¶
- Constants
- type Handler
- type Response
- func (r *Response) SetCode(code pb.Code) *Response
- func (r *Response) SetDataMap(data map[string]string) *Response
- func (r *Response) SetReason(reason string) *Response
- func (r *Response) SetSentTime(sentTime int64) *Response
- func (r *Response) SetStatus(status pb.Status) *Response
- func (r *Response) Write(w io.Writer, s serde.SerializeFunc) (int, error)
- type Service
Constants ¶
View Source
const ( ContentJSON = "application/json" ContentProto = "application/proto" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
func NewHandler ¶
func (*Handler) Ack ¶
func (h *Handler) Ack(rw http.ResponseWriter, resChannel chan struct{}, s serde.SerializeFunc, reqGuid string, connGroup string) collector.AckFunc
func (*Handler) RESTAPIHandler ¶
func (h *Handler) RESTAPIHandler(rw http.ResponseWriter, r *http.Request)
type Service ¶
func NewRestService ¶
Click to show internal directories.
Click to hide internal directories.