components

package
v0.0.0-...-142a334 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package components provides kafka consumer and producer

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type KafkaConsumer

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

KafkaConsumer is a wrapper around the kafka consumer

func NewKafkaConsumer

func NewKafkaConsumer(brokers, groupID, topic string) (*KafkaConsumer, error)

NewKafkaConsumer creates a new kafka consumer

type RedisClient

type RedisClient struct {
	Client *redis.Client
	// contains filtered or unexported fields
}

_RedisClient is a wrapper around the redis client

func GetRedisClient

func GetRedisClient(address, password string, db int) (*RedisClient, error)

Func GetRedisClient creates a new redis client (or reuse the existing one)

Jump to

Keyboard shortcuts

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