producer

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MessageProducer

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

func NewMessageProducer

func NewMessageProducer(storage storage.MessageStorage, sentinelClient sentinelpb.SentinelClient) *MessageProducer

func (*MessageProducer) Produce

func (m *MessageProducer) Produce(ctx context.Context, message proto.Message) error

type Producer

type Producer interface {
	Produce(ctx context.Context, message proto.Message) error
}

Producer defines an interface for a blocking operation of adding message to the configured pdcl topic

Jump to

Keyboard shortcuts

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