helpers

package
v0.0.0-sync-map Latest Latest
Warning

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

Go to latest
Published: May 15, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Prefix = "_connector:" + Name + ":"

	MembershipChangedBusEventName   = "membershipChanged"
	PersistSeqNoChangedBusEventName = "persistSeqNoChanged"
)
View Source
const Name = "cbgo"

Variables

This section is empty.

Functions

func ChunkSlice

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

func IsMetadata

func IsMetadata(data interface{}) bool

func Retry added in v0.0.50

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

Types

type Bus added in v0.0.43

type Bus interface {
	Emit(eventName string, event interface{})
	Subscribe(eventName string, listener Listener)
}

func NewBus added in v0.0.43

func NewBus() Bus

type Listener added in v0.0.43

type Listener = func(event interface{})

Jump to

Keyboard shortcuts

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