producer

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2022 License: MIT Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventHook

type EventHook func(*events.Event)

func WithKey

func WithKey(key string) EventHook

type TopicProducer

type TopicProducer interface {
	Send(ctx context.Context, eventName string, payload interface{}, hooks ...EventHook) error
}

func NewTopicProducer

func NewTopicProducer(producer events.Producer, topic string) TopicProducer

Jump to

Keyboard shortcuts

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