publisher

package
v1.0.0-alpha2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PublisherConfig

type PublisherConfig struct {
	TopicName string
	Schema    interface{}
	Client    *amqp.AmqpClient
}

func NewPublisher

func NewPublisher(topicName string, schema schemaType) *PublisherConfig

func (*PublisherConfig) Build

func (p *PublisherConfig) Build(client *amqp.AmqpClient)

func (*PublisherConfig) Publish

func (p *PublisherConfig) Publish(data []byte) (bool, error)

Jump to

Keyboard shortcuts

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