subscriber

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConsumeFunc

type ConsumeFunc func(ctx context.Context, message event.EventString) error

type Subscriber

type Subscriber interface {
	// Start the subscriber
	Start()
	// Close all underlying connections and resources
	Close() error
	// GroupID that is used
	GroupID() string
	// Topic that it is subscribed
	Topic() string
}

Subscriber is the interface to manage ONE topic

Jump to

Keyboard shortcuts

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