util

package
v5.0.6 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2024 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const ErrOffset = math.MinInt64

Variables

This section is empty.

Functions

func ContainsInt32

func ContainsInt32(list []int32, element int32) bool

func ContainsString

func ContainsString(list []string, element string) bool

func ConvertControlChars

func ConvertControlChars(value string) string

func ExtractOffsetForPartition

func ExtractOffsetForPartition(rawOffsets []string, currentPartition int32) (int64, error)

func LoadPlugin added in v5.0.3

func LoadPlugin[P plugin.Plugin, I any](pluginName string, pluginSpec plugins.PluginSpec[P, I]) (impl I, err error)

func ParseOffsets

func ParseOffsets(rawOffsets []string) (map[int32]int64, error)

func ParseTimestamp

func ParseTimestamp(timestamp string) (time.Time, error)

func StringArraysEqual

func StringArraysEqual(a, b []string) bool

Types

This section is empty.

Jump to

Keyboard shortcuts

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