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 ¶
- Variables
- type Posting
- func (*Posting) Descriptor() ([]byte, []int)
- func (m *Posting) Marshal() (data []byte, err error)
- func (m *Posting) MarshalTo(data []byte) (int, error)
- func (*Posting) ProtoMessage()
- func (m *Posting) Reset()
- func (m *Posting) Size() (n int)
- func (m *Posting) String() string
- func (m *Posting) Unmarshal(data []byte) error
- type PostingList
- func (*PostingList) Descriptor() ([]byte, []int)
- func (m *PostingList) GetPostings() []*Posting
- func (m *PostingList) Marshal() (data []byte, err error)
- func (m *PostingList) MarshalTo(data []byte) (int, error)
- func (*PostingList) ProtoMessage()
- func (m *PostingList) Reset()
- func (m *PostingList) Size() (n int)
- func (m *PostingList) String() string
- func (m *PostingList) Unmarshal(data []byte) error
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) ProtoMessage ¶ added in v0.7.0
func (*Posting) ProtoMessage()
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
Click to show internal directories.
Click to hide internal directories.