synchub

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2026 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryHub

type MemoryHub struct {
	// contains filtered or unexported fields
}

MemoryHub is a tiny in-process sync hub for examples.

func NewMemoryHub

func NewMemoryHub() *MemoryHub

func (*MemoryHub) Pull

func (h *MemoryHub) Pull(_ context.Context, afterSequence int64, limit int) ([]hasync.CanonicalEvent, error)

func (*MemoryHub) Push

func (h *MemoryHub) Push(_ context.Context, events []hasync.LocalEvent) ([]hasync.PushResult, error)

Jump to

Keyboard shortcuts

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