Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateHandleFunc ¶
func CreateHandleFunc(handleFunc func(req *http.Request, params httprouter.Params) (status int, header http.Header, event *EventResponse, body interface{})) httprouter.Handle
func CreateHandler ¶
func CreateHandler(handler OpenApiHandler) httprouter.Handle
Types ¶
type EventResponse ¶
type EventResponse struct { Event string `json:"event"` Namespace string `json:"namespace"` Key string `json:"key"` Data []byte `json:"data"` }
func (*EventResponse) String ¶
func (e *EventResponse) String() string
type OpenApiHandleFunc ¶
type OpenApiHandleFunc func(req *http.Request, params httprouter.Params) (status int, header http.Header, event *EventResponse, body interface{})
func (OpenApiHandleFunc) Serve ¶
func (f OpenApiHandleFunc) Serve(req *http.Request, params httprouter.Params) (status int, header http.Header, event *EventResponse, body interface{})
type OpenApiHandler ¶
type OpenApiHandler interface {
Serve(req *http.Request, params httprouter.Params) (status int, header http.Header, event *EventResponse, body interface{})
}
type OpenApiProxyResponse ¶
type OpenApiProxyResponse struct { RespData interface{} `json:"resp_data"` Event *EventResponse `json:"event"` }
Click to show internal directories.
Click to hide internal directories.