topic

package
v0.0.0-...-977fba5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL