topic

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(topicName string) error

Create a new topic in project

func CreateSubscription

func CreateSubscription(topicName string, subName string)

CreateSubscription a new sub in project

func Delete

func Delete(topicName string) (bool, error)

Delete topic in project

func Exists

func Exists(topicName string) (bool, error)

Exists topic control in project

func Init

func Init(clientId string)

Init must call one time every operation

func Publish

func Publish(topicName string, message interface{}) (bool, error)

Publish a new message to sub

func Receive

func Receive(subName string) ([]topicres.Receive, error)

Receive get message to sub

func Subscriptions

func Subscriptions(topicName string) (topicres.Subscriptions, error)

Subscriptions list in a project

func Topics

func Topics() topicres.Topics

Topics list in project

Types

This section is empty.

Jump to

Keyboard shortcuts

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