store

package
v0.18.8 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 3 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Id       uuid.UUID `json:"id"`
	Type     string    `json:"type"`
	Data     []byte    `json:"data"`
	Metadata []byte    `json:"metadata"`
}

type ReadEvent

type ReadEvent struct {
	Event

	Position uint64    `json:"position"`
	Created  time.Time `json:"created"`
}

type StreamPosition

type StreamPosition uint64
const (
	STREAM_START StreamPosition = 0
	STREAM_END   StreamPosition = math.MaxUint64
)

type WriteEvent

type WriteEvent struct {
	Event

	Status chan<- WriteStatus
}

type WriteStatus added in v0.17.0

type WriteStatus struct {
	Error    error
	Position uint64
	Time     time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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