proto

package
v0.0.0-...-afb37f2 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

table.proto

It has these top-level messages:

TableHeader
IndexEntry

Index

Constants

This section is empty.

Variables

View Source
var TableHeader_Compression_name = map[int32]string{
	0: "NONE",
	1: "ZLIB",
}
View Source
var TableHeader_Compression_value = map[string]int32{
	"NONE": 0,
	"ZLIB": 1,
}

Functions

This section is empty.

Types

type IndexEntry

type IndexEntry struct {
	// Key. Arbitrary array of up to 256 bytes.
	Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
	// Offset of value, relative to the start of the value section.
	Offset uint64 `protobuf:"varint,2,opt,name=offset" json:"offset,omitempty"`
	// Length of value.
	Length uint32 `protobuf:"varint,3,opt,name=length" json:"length,omitempty"`
	// Extra data associated with this entry.
	Extra []byte `protobuf:"bytes,4,opt,name=extra,proto3" json:"extra,omitempty"`
}

func (*IndexEntry) Descriptor

func (*IndexEntry) Descriptor() ([]byte, []int)

func (*IndexEntry) ProtoMessage

func (*IndexEntry) ProtoMessage()

func (*IndexEntry) Reset

func (m *IndexEntry) Reset()

func (*IndexEntry) String

func (m *IndexEntry) String() string

type TableHeader

type TableHeader struct {
	// Verison number. MUST be 1.
	Version uint32 `protobuf:"varint,1,opt,name=version" json:"version,omitempty"`
	// Compression used for the index.
	IndexCompression TableHeader_Compression `` /* 138-byte string literal not displayed */
	// Length of the index data.
	IndexLength uint32 `protobuf:"varint,3,opt,name=index_length,json=indexLength" json:"index_length,omitempty"`
	// Number of index entries.
	IndexEntries uint32 `protobuf:"varint,4,opt,name=index_entries,json=indexEntries" json:"index_entries,omitempty"`
}

func (*TableHeader) Descriptor

func (*TableHeader) Descriptor() ([]byte, []int)

func (*TableHeader) ProtoMessage

func (*TableHeader) ProtoMessage()

func (*TableHeader) Reset

func (m *TableHeader) Reset()

func (*TableHeader) String

func (m *TableHeader) String() string

type TableHeader_Compression

type TableHeader_Compression int32
const (
	TableHeader_NONE TableHeader_Compression = 0
	TableHeader_ZLIB TableHeader_Compression = 1
)

func (TableHeader_Compression) EnumDescriptor

func (TableHeader_Compression) EnumDescriptor() ([]byte, []int)

func (TableHeader_Compression) String

func (x TableHeader_Compression) String() string

Jump to

Keyboard shortcuts

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