adapter

package
v0.0.0-...-c17b661 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewKafkaAdapter

func NewKafkaAdapter(kafkaBrokers []string, topic string) port.IMessage

Types

type KafkaAdapter

type KafkaAdapter struct {
	Writer *kafka.Writer
}

func (*KafkaAdapter) Close

func (k *KafkaAdapter) Close() error

func (*KafkaAdapter) Consume

func (k *KafkaAdapter) Consume(topic string) (<-chan kafka.Message, error)

func (*KafkaAdapter) Publish

func (k *KafkaAdapter) Publish(topic string, message string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳