forwarder

package
v4.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Forwarder

type Forwarder interface {
	Produce(ctx context.Context, topic string, message []byte) (int32, int64, error)
}

Forwarder is the forwarder of the events

type KafkaForwarder

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

func NewKafkaForwarder

func NewKafkaForwarder(config *viper.Viper) (*KafkaForwarder, error)

func (KafkaForwarder) Produce

func (k KafkaForwarder) Produce(ctx context.Context, topic string, message []byte) (int32, int64, error)

Jump to

Keyboard shortcuts

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