helpers

package
v1.1.56 Latest Latest
Warning

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

Go to latest
Published: Oct 4, 2024 License: MIT Imports: 7 Imported by: 12

Documentation

Index

Constants

View Source
const (
	Prefix    string = "_connector:" + Name + ":"
	TxnPrefix string = "_txn:"

	MembershipChangedBusEventName   string = "membershipChanged"
	PersistSeqNoChangedBusEventName string = "persistSeqNoChanged"

	JSONFlags uint32 = 50333696
)
View Source
const Name = "cbgo"

Variables

This section is empty.

Functions

func ChunkSlice

func ChunkSlice[T any](slice []T, chunks int) [][]T

func ChunkSliceWithSize added in v1.1.32

func ChunkSliceWithSize[T any](slice []T, chunkSize int) [][]T

func IsMetadata

func IsMetadata(data interface{}) bool

func ResolveUnionIntOrStringValue added in v1.1.11

func ResolveUnionIntOrStringValue(input any) int

func Retry

func Retry(f func() error, attempts int, sleep time.Duration) (err error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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