package
0.0.0-20230221233103-d30abd54d072
Repository: https://github.com/zeebo/rothko.git
Documentation: pkg.go.dev
# 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