Documentation
¶
Overview ¶
Package task is a generated protocol buffer package.
It is generated from these files:
task/task.proto
It has these top-level messages:
List Value Query Result Sort SortResult Num RaftContext Membership MembershipUpdate DirectedEdge Mutations Proposal KV KC GroupKeys
Index ¶
- Variables
- type DirectedEdge
- func (*DirectedEdge) Descriptor() ([]byte, []int)
- func (m *DirectedEdge) Marshal() (data []byte, err error)
- func (m *DirectedEdge) MarshalTo(data []byte) (int, error)
- func (*DirectedEdge) ProtoMessage()
- func (m *DirectedEdge) Reset()
- func (m *DirectedEdge) Size() (n int)
- func (m *DirectedEdge) String() string
- func (m *DirectedEdge) Unmarshal(data []byte) error
- type GroupKeys
- func (*GroupKeys) Descriptor() ([]byte, []int)
- func (m *GroupKeys) GetKeys() []*KC
- func (m *GroupKeys) Marshal() (data []byte, err error)
- func (m *GroupKeys) MarshalTo(data []byte) (int, error)
- func (*GroupKeys) ProtoMessage()
- func (m *GroupKeys) Reset()
- func (m *GroupKeys) Size() (n int)
- func (m *GroupKeys) String() string
- func (m *GroupKeys) Unmarshal(data []byte) error
- type KC
- type KV
- type List
- type Membership
- func (*Membership) Descriptor() ([]byte, []int)
- func (m *Membership) Marshal() (data []byte, err error)
- func (m *Membership) MarshalTo(data []byte) (int, error)
- func (*Membership) ProtoMessage()
- func (m *Membership) Reset()
- func (m *Membership) Size() (n int)
- func (m *Membership) String() string
- func (m *Membership) Unmarshal(data []byte) error
- type MembershipUpdate
- func (*MembershipUpdate) Descriptor() ([]byte, []int)
- func (m *MembershipUpdate) GetMembers() []*Membership
- func (m *MembershipUpdate) Marshal() (data []byte, err error)
- func (m *MembershipUpdate) MarshalTo(data []byte) (int, error)
- func (*MembershipUpdate) ProtoMessage()
- func (m *MembershipUpdate) Reset()
- func (m *MembershipUpdate) Size() (n int)
- func (m *MembershipUpdate) String() string
- func (m *MembershipUpdate) Unmarshal(data []byte) error
- type Mutations
- func (*Mutations) Descriptor() ([]byte, []int)
- func (m *Mutations) GetDel() []*DirectedEdge
- func (m *Mutations) GetSet() []*DirectedEdge
- func (m *Mutations) Marshal() (data []byte, err error)
- func (m *Mutations) MarshalTo(data []byte) (int, error)
- func (*Mutations) ProtoMessage()
- func (m *Mutations) Reset()
- func (m *Mutations) Size() (n int)
- func (m *Mutations) String() string
- func (m *Mutations) Unmarshal(data []byte) error
- type Num
- type Proposal
- func (*Proposal) Descriptor() ([]byte, []int)
- func (m *Proposal) GetMembership() *Membership
- func (m *Proposal) GetMutations() *Mutations
- func (m *Proposal) Marshal() (data []byte, err error)
- func (m *Proposal) MarshalTo(data []byte) (int, error)
- func (*Proposal) ProtoMessage()
- func (m *Proposal) Reset()
- func (m *Proposal) Size() (n int)
- func (m *Proposal) String() string
- func (m *Proposal) Unmarshal(data []byte) error
- type Query
- func (*Query) Descriptor() ([]byte, []int)
- func (m *Query) Marshal() (data []byte, err error)
- func (m *Query) MarshalTo(data []byte) (int, error)
- func (*Query) ProtoMessage()
- func (m *Query) Reset()
- func (m *Query) Size() (n int)
- func (m *Query) String() string
- func (m *Query) Unmarshal(data []byte) error
- type RaftContext
- func (*RaftContext) Descriptor() ([]byte, []int)
- func (m *RaftContext) Marshal() (data []byte, err error)
- func (m *RaftContext) MarshalTo(data []byte) (int, error)
- func (*RaftContext) ProtoMessage()
- func (m *RaftContext) Reset()
- func (m *RaftContext) Size() (n int)
- func (m *RaftContext) String() string
- func (m *RaftContext) Unmarshal(data []byte) error
- type Result
- func (*Result) Descriptor() ([]byte, []int)
- func (m *Result) GetUidMatrix() []*List
- func (m *Result) GetValues() []*Value
- func (m *Result) Marshal() (data []byte, err error)
- func (m *Result) MarshalTo(data []byte) (int, error)
- func (*Result) ProtoMessage()
- func (m *Result) Reset()
- func (m *Result) Size() (n int)
- func (m *Result) String() string
- func (m *Result) Unmarshal(data []byte) error
- type Sort
- func (*Sort) Descriptor() ([]byte, []int)
- func (m *Sort) GetUidMatrix() []*List
- func (m *Sort) Marshal() (data []byte, err error)
- func (m *Sort) MarshalTo(data []byte) (int, error)
- func (*Sort) ProtoMessage()
- func (m *Sort) Reset()
- func (m *Sort) Size() (n int)
- func (m *Sort) String() string
- func (m *Sort) Unmarshal(data []byte) error
- type SortResult
- func (*SortResult) Descriptor() ([]byte, []int)
- func (m *SortResult) GetUidMatrix() []*List
- func (m *SortResult) Marshal() (data []byte, err error)
- func (m *SortResult) MarshalTo(data []byte) (int, error)
- func (*SortResult) ProtoMessage()
- func (m *SortResult) Reset()
- func (m *SortResult) Size() (n int)
- func (m *SortResult) String() string
- func (m *SortResult) Unmarshal(data []byte) error
- type Value
- func (*Value) Descriptor() ([]byte, []int)
- func (m *Value) Marshal() (data []byte, err error)
- func (m *Value) MarshalTo(data []byte) (int, error)
- func (*Value) ProtoMessage()
- func (m *Value) Reset()
- func (m *Value) Size() (n int)
- func (m *Value) String() string
- func (m *Value) Unmarshal(data []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthTask = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowTask = fmt.Errorf("proto: integer overflow") )
Functions ¶
This section is empty.
Types ¶
type DirectedEdge ¶
type DirectedEdge struct {
Entity uint64 `protobuf:"fixed64,1,opt,name=entity,proto3" json:"entity,omitempty"`
Attr string `protobuf:"bytes,2,opt,name=attr,proto3" json:"attr,omitempty"`
Value []byte `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
ValueType uint32 `protobuf:"varint,4,opt,name=value_type,json=valueType,proto3" json:"value_type,omitempty"`
ValueId uint64 `protobuf:"fixed64,5,opt,name=value_id,json=valueId,proto3" json:"value_id,omitempty"`
Label string `protobuf:"bytes,6,opt,name=label,proto3" json:"label,omitempty"`
}
func (*DirectedEdge) Descriptor ¶
func (*DirectedEdge) Descriptor() ([]byte, []int)
func (*DirectedEdge) Marshal ¶
func (m *DirectedEdge) Marshal() (data []byte, err error)
func (*DirectedEdge) ProtoMessage ¶
func (*DirectedEdge) ProtoMessage()
func (*DirectedEdge) Reset ¶
func (m *DirectedEdge) Reset()
func (*DirectedEdge) Size ¶
func (m *DirectedEdge) Size() (n int)
func (*DirectedEdge) String ¶
func (m *DirectedEdge) String() string
func (*DirectedEdge) Unmarshal ¶
func (m *DirectedEdge) Unmarshal(data []byte) error
type GroupKeys ¶
type GroupKeys struct {
GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Keys []*KC `protobuf:"bytes,2,rep,name=keys" json:"keys,omitempty"`
}
func (*GroupKeys) Descriptor ¶
func (*GroupKeys) ProtoMessage ¶
func (*GroupKeys) ProtoMessage()
type KC ¶
type KC struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Checksum []byte `protobuf:"bytes,2,opt,name=checksum,proto3" json:"checksum,omitempty"`
}
func (*KC) Descriptor ¶
func (*KC) ProtoMessage ¶
func (*KC) ProtoMessage()
type KV ¶
type KV struct {
Key []byte `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
Val []byte `protobuf:"bytes,2,opt,name=val,proto3" json:"val,omitempty"`
}
func (*KV) Descriptor ¶
func (*KV) ProtoMessage ¶
func (*KV) ProtoMessage()
type List ¶
type List struct {
Uids []uint64 `protobuf:"fixed64,1,rep,name=uids" json:"uids,omitempty"`
}
func (*List) Descriptor ¶
func (*List) ProtoMessage ¶
func (*List) ProtoMessage()
type Membership ¶
type Membership struct {
Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"`
GroupId uint32 `protobuf:"varint,2,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
Leader bool `protobuf:"varint,4,opt,name=leader,proto3" json:"leader,omitempty"`
AmDead bool `protobuf:"varint,5,opt,name=am_dead,json=amDead,proto3" json:"am_dead,omitempty"`
LastUpdate uint64 `protobuf:"varint,6,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
}
Membership stores information about RAFT group membership for a single RAFT node. Note that each server can be serving multiple RAFT groups. Each group would have one RAFT node per server serving that group.
func (*Membership) Descriptor ¶
func (*Membership) Descriptor() ([]byte, []int)
func (*Membership) Marshal ¶
func (m *Membership) Marshal() (data []byte, err error)
func (*Membership) ProtoMessage ¶
func (*Membership) ProtoMessage()
func (*Membership) Reset ¶
func (m *Membership) Reset()
func (*Membership) Size ¶
func (m *Membership) Size() (n int)
func (*Membership) String ¶
func (m *Membership) String() string
func (*Membership) Unmarshal ¶
func (m *Membership) Unmarshal(data []byte) error
type MembershipUpdate ¶
type MembershipUpdate struct {
Members []*Membership `protobuf:"bytes,1,rep,name=members" json:"members,omitempty"`
LastUpdate uint64 `protobuf:"varint,2,opt,name=last_update,json=lastUpdate,proto3" json:"last_update,omitempty"`
Redirect bool `protobuf:"varint,3,opt,name=redirect,proto3" json:"redirect,omitempty"`
RedirectAddr string `protobuf:"bytes,4,opt,name=redirect_addr,json=redirectAddr,proto3" json:"redirect_addr,omitempty"`
}
MembershipUpdate is used to pack together the current membership state of all the nodes in the caller server; and the membership updates recorded by the callee server since the provided lastUpdate.
func (*MembershipUpdate) Descriptor ¶
func (*MembershipUpdate) Descriptor() ([]byte, []int)
func (*MembershipUpdate) GetMembers ¶
func (m *MembershipUpdate) GetMembers() []*Membership
func (*MembershipUpdate) Marshal ¶
func (m *MembershipUpdate) Marshal() (data []byte, err error)
func (*MembershipUpdate) ProtoMessage ¶
func (*MembershipUpdate) ProtoMessage()
func (*MembershipUpdate) Reset ¶
func (m *MembershipUpdate) Reset()
func (*MembershipUpdate) Size ¶
func (m *MembershipUpdate) Size() (n int)
func (*MembershipUpdate) String ¶
func (m *MembershipUpdate) String() string
func (*MembershipUpdate) Unmarshal ¶
func (m *MembershipUpdate) Unmarshal(data []byte) error
type Mutations ¶
type Mutations struct {
GroupId uint32 `protobuf:"varint,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"`
Set []*DirectedEdge `protobuf:"bytes,2,rep,name=set" json:"set,omitempty"`
Del []*DirectedEdge `protobuf:"bytes,3,rep,name=del" json:"del,omitempty"`
}
func (*Mutations) Descriptor ¶
func (*Mutations) GetDel ¶
func (m *Mutations) GetDel() []*DirectedEdge
func (*Mutations) GetSet ¶
func (m *Mutations) GetSet() []*DirectedEdge
func (*Mutations) ProtoMessage ¶
func (*Mutations) ProtoMessage()
type Num ¶
type Num struct {
Group uint32 `protobuf:"varint,1,opt,name=group,proto3" json:"group,omitempty"`
Val int64 `protobuf:"varint,2,opt,name=val,proto3" json:"val,omitempty"`
Uids []uint64 `protobuf:"varint,3,rep,name=uids" json:"uids,omitempty"`
}
func (*Num) Descriptor ¶
func (*Num) ProtoMessage ¶
func (*Num) ProtoMessage()
type Proposal ¶
type Proposal struct {
Id uint32 `protobuf:"varint,1,opt,name=id,proto3" json:"id,omitempty"`
Mutations *Mutations `protobuf:"bytes,2,opt,name=mutations" json:"mutations,omitempty"`
Membership *Membership `protobuf:"bytes,3,opt,name=membership" json:"membership,omitempty"`
}
func (*Proposal) Descriptor ¶
func (*Proposal) GetMembership ¶
func (m *Proposal) GetMembership() *Membership
func (*Proposal) GetMutations ¶
func (*Proposal) ProtoMessage ¶
func (*Proposal) ProtoMessage()
type Query ¶
type Query struct {
Attr string `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"`
Count int32 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
Offset int32 `protobuf:"varint,3,opt,name=offset,proto3" json:"offset,omitempty"`
AfterUid uint64 `protobuf:"fixed64,4,opt,name=after_uid,json=afterUid,proto3" json:"after_uid,omitempty"`
DoCount bool `protobuf:"varint,5,opt,name=do_count,json=doCount,proto3" json:"do_count,omitempty"`
// Exactly one of uids and terms is populated.
Uids []uint64 `protobuf:"fixed64,6,rep,name=uids" json:"uids,omitempty"`
// Function to generate or filter UIDs.
SrcFunc []string `protobuf:"bytes,7,rep,name=src_func,json=srcFunc" json:"src_func,omitempty"`
}
func (*Query) Descriptor ¶
func (*Query) ProtoMessage ¶
func (*Query) ProtoMessage()
type RaftContext ¶
type RaftContext struct {
Id uint64 `protobuf:"fixed64,1,opt,name=id,proto3" json:"id,omitempty"`
Group uint32 `protobuf:"varint,2,opt,name=group,proto3" json:"group,omitempty"`
Addr string `protobuf:"bytes,3,opt,name=addr,proto3" json:"addr,omitempty"`
}
func (*RaftContext) Descriptor ¶
func (*RaftContext) Descriptor() ([]byte, []int)
func (*RaftContext) Marshal ¶
func (m *RaftContext) Marshal() (data []byte, err error)
func (*RaftContext) ProtoMessage ¶
func (*RaftContext) ProtoMessage()
func (*RaftContext) Reset ¶
func (m *RaftContext) Reset()
func (*RaftContext) Size ¶
func (m *RaftContext) Size() (n int)
func (*RaftContext) String ¶
func (m *RaftContext) String() string
func (*RaftContext) Unmarshal ¶
func (m *RaftContext) Unmarshal(data []byte) error
type Result ¶
type Result struct {
UidMatrix []*List `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix" json:"uid_matrix,omitempty"`
Values []*Value `protobuf:"bytes,2,rep,name=values" json:"values,omitempty"`
Counts []uint32 `protobuf:"varint,3,rep,name=counts" json:"counts,omitempty"`
IntersectDest bool `protobuf:"varint,4,opt,name=intersect_dest,json=intersectDest,proto3" json:"intersect_dest,omitempty"`
}
func (*Result) Descriptor ¶
func (*Result) GetUidMatrix ¶
func (*Result) ProtoMessage ¶
func (*Result) ProtoMessage()
type Sort ¶
type Sort struct {
Attr string `protobuf:"bytes,1,opt,name=attr,proto3" json:"attr,omitempty"`
UidMatrix []*List `protobuf:"bytes,2,rep,name=uid_matrix,json=uidMatrix" json:"uid_matrix,omitempty"`
Count int32 `protobuf:"varint,3,opt,name=count,proto3" json:"count,omitempty"`
Offset int32 `protobuf:"varint,4,opt,name=offset,proto3" json:"offset,omitempty"`
}
func (*Sort) Descriptor ¶
func (*Sort) GetUidMatrix ¶
func (*Sort) ProtoMessage ¶
func (*Sort) ProtoMessage()
type SortResult ¶
type SortResult struct {
UidMatrix []*List `protobuf:"bytes,1,rep,name=uid_matrix,json=uidMatrix" json:"uid_matrix,omitempty"`
}
func (*SortResult) Descriptor ¶
func (*SortResult) Descriptor() ([]byte, []int)
func (*SortResult) GetUidMatrix ¶
func (m *SortResult) GetUidMatrix() []*List
func (*SortResult) Marshal ¶
func (m *SortResult) Marshal() (data []byte, err error)
func (*SortResult) ProtoMessage ¶
func (*SortResult) ProtoMessage()
func (*SortResult) Reset ¶
func (m *SortResult) Reset()
func (*SortResult) Size ¶
func (m *SortResult) Size() (n int)
func (*SortResult) String ¶
func (m *SortResult) String() string
func (*SortResult) Unmarshal ¶
func (m *SortResult) Unmarshal(data []byte) error
type Value ¶
type Value struct {
Val []byte `protobuf:"bytes,1,opt,name=val,proto3" json:"val,omitempty"`
ValType uint32 `protobuf:"varint,2,opt,name=val_type,json=valType,proto3" json:"val_type,omitempty"`
}
func (*Value) Descriptor ¶
func (*Value) ProtoMessage ¶
func (*Value) ProtoMessage()
Click to show internal directories.
Click to hide internal directories.