kafkian

package
v0.60.0 Latest Latest
Warning

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

Go to latest
Published: Oct 18, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

WS web socket connection.

Functions

func AssignConsumer

func AssignConsumer(env base.Environment, topic string) (err error)

AssignConsumer creates a consumer for the given environment topic.

func GetReplayTypesList

func GetReplayTypesList() []string

GetReplayTypesList returns the supported replay types.

func HandleWS

func HandleWS(w http.ResponseWriter, r *http.Request)

HandleWS handles web socket messages.

func LookupTopic

func LookupTopic(env base.Environment, topic, params string) (err error)

LookupTopic searchs in topic messages, according to the given replay params.

func ProduceMessage

func ProduceMessage(env base.Environment, msg *kafka.Message) (err error)

ProduceMessage produces the given message, using the given environment configuration.

func SubscribeConsumer

func SubscribeConsumer(env base.Environment, topic string) (err error)

SubscribeConsumer creates a consumer for the given environment topics.

Types

This section is empty.

Jump to

Keyboard shortcuts

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