store

package
v0.7.11 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

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

type ReadEvent

type ReadEvent struct {
	Created time.Time `json:"created"`
	Event
	Position uint64 `json:"position"`
}

type StreamPosition

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

type WriteEvent

type WriteEvent struct {
	Status chan<- WriteStatus
	Event
}

type WriteStatus

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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