kafka_adapter

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 1, 2023 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaAdapter

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

func New

func New(w *kafka.Writer) *KafkaAdapter

func (*KafkaAdapter) Close

func (k *KafkaAdapter) Close() error

func (*KafkaAdapter) Listener

func (k *KafkaAdapter) Listener(ctx context.Context, fn func(discourse.Message) error, cfgSubcription discourse.Subscription) error

func (*KafkaAdapter) Publish

func (k *KafkaAdapter) Publish(ctx context.Context, message discourse.Publisher) error

Jump to

Keyboard shortcuts

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