dsl

package
v0.22.20 Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ID = "_id"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Ops added in v0.22.7

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

func (*Ops) Close added in v0.22.7

func (o *Ops) Close() error

type Reader added in v0.22.7

type Reader[T proto.Message] struct {
	// contains filtered or unexported fields
}

func (*Reader[T]) Release added in v0.22.7

func (r *Reader[T]) Release() error

func (*Reader[T]) Tr added in v0.22.7

func (r *Reader[T]) Tr() *tr.Read

func (*Reader[T]) View added in v0.22.7

func (r *Reader[T]) View(f func(txn *tx.Tx) error) error

type Schema added in v0.22.7

type Schema[T proto.Message] struct {
	// contains filtered or unexported fields
}

Schema maps proto fields to rbf types.

func NewSchema added in v0.22.18

func NewSchema[T proto.Message](bsi ...string) (*Schema[T], error)

func (*Schema[T]) Reset added in v0.22.18

func (s *Schema[T]) Reset()

func (*Schema[T]) Write added in v0.22.7

func (s *Schema[T]) Write(msg T)

type Shard added in v0.22.7

type Shard struct {
	Shard uint64
	Views []string
}

type Store added in v0.22.7

type Store[T proto.Message] struct {
	// contains filtered or unexported fields
}

func New added in v0.22.7

func New[T proto.Message](path string, bsi ...string) (*Store[T], error)

func (*Store[T]) Append added in v0.22.7

func (s *Store[T]) Append(data []T)

func (*Store[T]) Close added in v0.22.7

func (s *Store[T]) Close() error

func (*Store[T]) DB added in v0.22.7

func (s *Store[T]) DB() *rbf.DB

func (*Store[T]) Flush added in v0.22.18

func (s *Store[T]) Flush() error

func (*Store[T]) Reader added in v0.22.7

func (s *Store[T]) Reader() (*Reader[T], error)

Reader creates a new Reader for querying the store T. Make sure the reader is released after use.

func (*Store[T]) Shards added in v0.22.19

func (s *Store[T]) Shards() *roaring64.Bitmap

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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