Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Root = kit.NewRouter(httptransport.Group("/event"), &middleware.EventReqRateLimit{}) Root2 = kit.NewRouter(httptransport.Group("/event2"), &middleware.EventReqRateLimit{}) )
TODO: Unify the event interface
Functions ¶
This section is empty.
Types ¶
type DataPushReq ¶ added in v1.4.0
type DataPushRsp ¶ added in v1.4.0
type DataPushRsps ¶ added in v1.4.0
type DataPushRsps []*DataPushRsp
type HandleDataPush ¶ added in v1.4.0
type HandleDataPush struct { httpx.MethodPost DataPushReq `in:"body"` Channel string `in:"path" name:"channel"` }
func (*HandleDataPush) Output ¶ added in v1.4.0
func (r *HandleDataPush) Output(ctx context.Context) (interface{}, error)
func (*HandleDataPush) Path ¶ added in v1.4.0
func (r *HandleDataPush) Path() string
type HandleEvent ¶
type HandleEvent struct { httpx.MethodPost event.EventReq }
func (*HandleEvent) Path ¶
func (r *HandleEvent) Path() string
Click to show internal directories.
Click to hide internal directories.