producer

package
v0.0.0-...-80df095 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SendMsg

func SendMsg(topic, msgBody string) error

func SendMsgWithTransaction

func SendMsgWithTransaction(f func() bool, topic, msgBody string) error

Types

type DemoListener

type DemoListener struct {
	// contains filtered or unexported fields
}

func NewDemoListener

func NewDemoListener(f func() bool) *DemoListener

func (*DemoListener) CheckLocalTransaction

func (dl *DemoListener) CheckLocalTransaction(msg *primitive.MessageExt) primitive.LocalTransactionState

func (*DemoListener) ExecuteLocalTransaction

func (dl *DemoListener) ExecuteLocalTransaction(msg *primitive.Message) primitive.LocalTransactionState

Jump to

Keyboard shortcuts

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