storebus

package module
v0.0.0-...-11e806d Latest Latest
Warning

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

Go to latest
Published: Mar 5, 2026 License: Apache-2.0 Imports: 9 Imported by: 2

README

MOVED

This repository has moved to https://g.fc.run/patchy/storebus


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateHash

func UpdateHash(obj any) error

Types

type StoreBus

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

func NewStoreBus

func NewStoreBus(dbname string) (*StoreBus, error)

func (*StoreBus) Close

func (sb *StoreBus) Close()

func (*StoreBus) CloseListStream

func (sb *StoreBus) CloseListStream(t string, c <-chan []any)

func (*StoreBus) CloseReadStream

func (sb *StoreBus) CloseReadStream(t, id string, c <-chan any)

func (*StoreBus) Delete

func (sb *StoreBus) Delete(ctx context.Context, t, id string) error

func (*StoreBus) List

func (sb *StoreBus) List(ctx context.Context, t string, factory func() any) ([]any, error)

func (*StoreBus) ListStream

func (sb *StoreBus) ListStream(ctx context.Context, t string, factory func() any) (<-chan []any, error)

func (*StoreBus) Read

func (sb *StoreBus) Read(ctx context.Context, t, id string, factory func() any) (any, error)

func (*StoreBus) ReadStream

func (sb *StoreBus) ReadStream(ctx context.Context, t, id string, factory func() any) (<-chan any, error)

func (*StoreBus) Write

func (sb *StoreBus) Write(ctx context.Context, t string, obj any) error

Jump to

Keyboard shortcuts

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