store

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Store

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

func OpenStore

func OpenStore(path string) (*Store, error)

func (*Store) GetStreamStat

func (store *Store) GetStreamStat(id int64) (*StreamStat, error)

func (*Store) ReadRequest

func (store *Store) ReadRequest(ctx context.Context, request *proto.ReadStreamRequest,
	callback func(offset int64, data []byte) error) error

func (*Store) WriteRequest

func (store *Store) WriteRequest(request *proto.WriteStreamRequest, callback func(offset int64, err error))

type StreamStat

type StreamStat struct {
	StreamID int64
	Begin    int64
	End      int64
}

Jump to

Keyboard shortcuts

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