meta

package
v0.0.0-...-d30abd5 Latest Latest
Warning

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

Go to latest
Published: Feb 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

README

package meta

import "github.com/zeebo/rothko/database/files/internal/meta"

Usage

var (
	ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMeta   = fmt.Errorf("proto: integer overflow")
)
type Metadata
type Metadata struct {
	// the alignment size of the file.
	Size_ int `protobuf:"varint,1,opt,name=size,proto3,casttype=int" json:"size,omitempty"`
	// points at the first available record.
	Head int `protobuf:"varint,2,opt,name=head,proto3,casttype=int" json:"head,omitempty"`
	// advisory start and end of the records in the file.
	Start       int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End         int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	SmallestEnd int64 `protobuf:"varint,5,opt,name=smallest_end,json=smallestEnd,proto3" json:"smallest_end,omitempty"`
}

Metadata contains information about a file.

func (*Metadata) Marshal
func (m *Metadata) Marshal() (dAtA []byte, err error)
func (*Metadata) MarshalTo
func (m *Metadata) MarshalTo(dAtA []byte) (int, error)
func (*Metadata) Reset
func (m *Metadata) Reset()
func (*Metadata) Size
func (m *Metadata) Size() (n int)
func (*Metadata) Unmarshal
func (m *Metadata) Unmarshal(dAtA []byte) error

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMeta = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMeta   = fmt.Errorf("proto: integer overflow")
)

Functions

This section is empty.

Types

type Metadata

type Metadata struct {
	// the alignment size of the file.
	Size_ int `protobuf:"varint,1,opt,name=size,proto3,casttype=int" json:"size,omitempty"`
	// points at the first available record.
	Head int `protobuf:"varint,2,opt,name=head,proto3,casttype=int" json:"head,omitempty"`
	// advisory start and end of the records in the file.
	Start       int64 `protobuf:"varint,3,opt,name=start,proto3" json:"start,omitempty"`
	End         int64 `protobuf:"varint,4,opt,name=end,proto3" json:"end,omitempty"`
	SmallestEnd int64 `protobuf:"varint,5,opt,name=smallest_end,json=smallestEnd,proto3" json:"smallest_end,omitempty"`
}

Metadata contains information about a file.

func (*Metadata) Marshal

func (m *Metadata) Marshal() (dAtA []byte, err error)

func (*Metadata) MarshalTo

func (m *Metadata) MarshalTo(dAtA []byte) (int, error)

func (*Metadata) Reset

func (m *Metadata) Reset()

func (*Metadata) Size

func (m *Metadata) Size() (n int)

func (*Metadata) Unmarshal

func (m *Metadata) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

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