Help us shape the future of Go! Take the 2026 Go Developer Survey

types

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2016 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package types is a generated protocol buffer package.

It is generated from these files:

posting/types/types.proto

It has these top-level messages:

Posting
PostingList

Index

Constants

This section is empty.

Variables

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

Functions

This section is empty.

Types

type Posting

type Posting struct {
	Uid     uint64 `protobuf:"fixed64,1,opt,name=uid,proto3" json:"uid,omitempty"`
	Value   []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
	ValType uint32 `protobuf:"varint,3,opt,name=val_type,json=valType,proto3" json:"val_type,omitempty"`
	Label   string `protobuf:"bytes,4,opt,name=label,proto3" json:"label,omitempty"`
	Commit  uint64 `protobuf:"varint,5,opt,name=commit,proto3" json:"commit,omitempty"`
	// TODO: op is only used temporarily. See if we can remove it from here.
	Op uint32 `protobuf:"varint,12,opt,name=op,proto3" json:"op,omitempty"`
}

func (*Posting) Descriptor added in v0.7.0

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

func (*Posting) Marshal added in v0.7.0

func (m *Posting) Marshal() (data []byte, err error)

func (*Posting) MarshalTo added in v0.7.0

func (m *Posting) MarshalTo(data []byte) (int, error)

func (*Posting) ProtoMessage added in v0.7.0

func (*Posting) ProtoMessage()

func (*Posting) Reset added in v0.7.0

func (m *Posting) Reset()

func (*Posting) Size added in v0.7.0

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

func (*Posting) String added in v0.7.0

func (m *Posting) String() string

func (*Posting) Unmarshal added in v0.7.0

func (m *Posting) Unmarshal(data []byte) error

type PostingList

type PostingList struct {
	Postings []*Posting `protobuf:"bytes,1,rep,name=postings" json:"postings,omitempty"`
	Checksum []byte     `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
	Commit   uint64     `protobuf:"varint,3,opt,name=commit,proto3" json:"commit,omitempty"`
}

func (*PostingList) Descriptor added in v0.7.0

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

func (*PostingList) GetPostings added in v0.7.0

func (m *PostingList) GetPostings() []*Posting

func (*PostingList) Marshal added in v0.7.0

func (m *PostingList) Marshal() (data []byte, err error)

func (*PostingList) MarshalTo added in v0.7.0

func (m *PostingList) MarshalTo(data []byte) (int, error)

func (*PostingList) ProtoMessage added in v0.7.0

func (*PostingList) ProtoMessage()

func (*PostingList) Reset added in v0.7.0

func (m *PostingList) Reset()

func (*PostingList) Size added in v0.7.0

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

func (*PostingList) String added in v0.7.0

func (m *PostingList) String() string

func (*PostingList) Unmarshal added in v0.7.0

func (m *PostingList) Unmarshal(data []byte) error

Jump to

Keyboard shortcuts

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