messages

package
v0.0.0-...-ccfeae6 Latest Latest
Warning

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

Go to latest
Published: Aug 11, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Consume

func Consume(config *kafka.ConfigMap, topics []string, groupID string, delay string) error

func Must

func Must[T any](whatever T, err error) T

func Produce

func Produce(config *kafka.ConfigMap, topic string, numMessages int, key string, delay string) error

Types

type Message

type Message struct {
	Key     string `json:"key"`
	Message string `json:"message"`
}

Jump to

Keyboard shortcuts

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