producer

package
v0.5.34 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2022 License: Zlib Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func PublishWithJson

func PublishWithJson(topic string, event interface{}) error

func PublishWithString

func PublishWithString(topic string, data []byte) error

func Start

func Start(cfg server.MqConfig) error

func Stop

func Stop()

Types

type Producer

type Producer interface {
	Start(cfg server.MqConfig) error

	Stop()

	SendJson(topic string, event interface{}) error

	SendBytes(topic string, data []byte) error
}

func NewProducer

func NewProducer() Producer

Jump to

Keyboard shortcuts

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