yolopersist

package
v0.0.0-...-388bbc9 Latest Latest
Warning

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

Go to latest
Published: Mar 12, 2025 License: Apache-2.0, MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type YoloPersister

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

YoloPersister is used for benchmarking, it has no persistence, it just emits events and forgets them

func NewYoloPersister

func NewYoloPersister() *YoloPersister

func (*YoloPersister) Flush

func (yp *YoloPersister) Flush(ctx context.Context) error

func (*YoloPersister) Persist

func (*YoloPersister) Playback

func (mp *YoloPersister) Playback(ctx context.Context, since int64, cb func(*events.XRPCStreamEvent) error) error

func (*YoloPersister) SetEventBroadcaster

func (yp *YoloPersister) SetEventBroadcaster(brc func(*events.XRPCStreamEvent))

func (*YoloPersister) Shutdown

func (yp *YoloPersister) Shutdown(ctx context.Context) error

func (*YoloPersister) TakeDownRepo

func (yp *YoloPersister) TakeDownRepo(ctx context.Context, uid models.Uid) error

Jump to

Keyboard shortcuts

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