position

package
v0.5.4 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TopicPosition

type TopicPosition struct {
	ReplayID []byte    `json:"replayID"`
	ReadTime time.Time `json:"readTime"`
}

type TopicPositions

type TopicPositions map[string]TopicPosition

type Topics

type Topics struct {
	Topics TopicPositions `json:"topics"`
}

func NewTopicPosition

func NewTopicPosition() Topics

func ParseSDKPosition

func ParseSDKPosition(sdkPos opencdc.Position, topic string) (Topics, error)

func (Topics) SetTopicReplayID

func (p Topics) SetTopicReplayID(topic string, replayID []byte) error

func (Topics) SetTopics

func (p Topics) SetTopics(topics []string)

func (Topics) ToSDKPosition

func (p Topics) ToSDKPosition() opencdc.Position

func (Topics) TopicReplayID

func (p Topics) TopicReplayID(topic string) []byte

Jump to

Keyboard shortcuts

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