utils

package
v0.0.0-...-7abe817 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2023 License: Apache-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateMsgLength

func CalculateMsgLength(message pulsar.Message) int

func GetLatestMsgId

func GetLatestMsgId(partitionedTopic, addr string) (msg []byte, err error)

func HttpGet

func HttpGet(url string, params map[string]string, header map[string]string) (resp []byte, err error)

func PartitionedTopic

func PartitionedTopic(topic string, partition int) string

func ReadEarliestMsg

func ReadEarliestMsg(partitionedTopic string, maxWaitMs int, pulsarClient pulsar.Client) (pulsar.Message, error)

func ReadLastedMsg

func ReadLastedMsg(partitionedTopic string, maxWaitMs int, msgIdBytes []byte, pulsarClient pulsar.Client) (pulsar.Message, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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