Documentation ¶
Overview ¶
Package topic MVC Controller with route prefix /topic.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct{}
Controller Topic.
@RoutePrefix(/topic)
func (*Controller) PostBatch ¶
func (o *Controller) PostBatch(i iris.Context) interface{}
PostBatch Publish multiple.
Each request can publish multiple messages, up to 100. Asynchronous mode.
@Request(app/logics/topic.BatchRequest) @Response(app/logics/topic.BatchResponse)
func (*Controller) PostPublish ¶
func (o *Controller) PostPublish(i iris.Context) interface{}
PostPublish Publish one.
Only 1 message can be published per request. Asynchronous mode.
@Request(app/logics/topic.PublishRequest) @Response(app/logics/topic.PublishResponse)
Click to show internal directories.
Click to hide internal directories.