ot

package
v0.7.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package ot represents the offset-timeline pair and its corresponding encoder and decoder.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Value

type Value struct {
	Offset    int64
	Watermark int64
}

Value is used in the JetStream offset timeline bucket as the value for the given processor entity key.

func DecodeToOTValue

func DecodeToOTValue(b []byte) (Value, error)

DecodeToOTValue decodes the given byte array into a Value object.

func (Value) EncodeToBytes

func (v Value) EncodeToBytes() ([]byte, error)

EncodeToBytes encodes a Value object into byte array.

Jump to

Keyboard shortcuts

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