index

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrUnsupportedIndexType = errors.New("unsupported index type")

Functions

This section is empty.

Types

type CallbackFn

type CallbackFn func()

type Message

type Message struct {
	Scope       tsdb.Entry
	Value       Value
	LocalWriter tsdb.Writer
	BlockCloser io.Closer
	Cb          CallbackFn
}

type Value

type Value struct {
	TagFamilies []*modelv1.TagFamilyForWrite
	Timestamp   time.Time
}

type Writer

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

func NewWriter

func NewWriter(ctx context.Context, options WriterOptions) *Writer

func (*Writer) Close

func (s *Writer) Close() error

func (*Writer) Write

func (s *Writer) Write(value Message)

type WriterOptions

type WriterOptions struct {
	ShardNum          uint32
	Families          []*databasev1.TagFamilySpec
	IndexRules        []*databasev1.IndexRule
	DB                tsdb.Supplier
	EnableGlobalIndex bool
}

Jump to

Keyboard shortcuts

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