ondisk

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: 11 Imported by: 3

Documentation

Index

Constants

View Source
const (
	B  = 1
	KB = B << 10
	MB = KB << 10
	GB = MB << 10
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Stream

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

func Init

func Init(name string, ctx context.Context) (s *Stream, err error)

func (*Stream) End

func (s *Stream) End() (pos uint64, err error)

func (*Stream) Name

func (s *Stream) Name() string

func (*Stream) Stream

func (s *Stream) Stream(from store.StreamPosition, ctx context.Context) (out <-chan store.ReadEvent, err error)

func (*Stream) Write

func (s *Stream) Write() chan<- store.WriteEvent

Jump to

Keyboard shortcuts

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