producer

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package producer defines functions for producing messages.

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(writer storage.MessageWriter, 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