connector

package
v0.0.0-...-388d6c9 Latest Latest
Warning

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

Go to latest
Published: Sep 27, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package connector provides the connector of the broker.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RealTimeConnector

type RealTimeConnector interface {
	// Produce produce a Message to the queue in real time
	Produce(ctx context.Context, msg *types.Message) error
	// NewConsumer new a consumer to consume Messages from the realtime queue in background
	NewConsumer(topic, group string, batchSize int, fn type2.HandleMessage) error
	// Close the queue
	Close() error
}

RealTimeConnector is a connector which can send messages to the realtime queue the realtime queue can store or consume messages in realtime

Directories

Path Synopsis
Package kafka_connector provides a connector to Kafka
Package kafka_connector provides a connector to Kafka
Package redis_connector implements a connector with redis
Package redis_connector implements a connector with redis

Jump to

Keyboard shortcuts

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