Documentation ¶
Index ¶
- Variables
- type Message
- func (*Message) Descriptor() ([]byte, []int)deprecated
- func (x *Message) GetBody() []byte
- func (x *Message) GetGroupId() []byte
- func (x *Message) GetTimestamp() int64
- func (m Message) ID() state.MessageID
- func (*Message) ProtoMessage()
- func (x *Message) ProtoReflect() protoreflect.Message
- func (x *Message) Reset()
- func (x *Message) String() string
- type Offer
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)deprecated
- func (x *Payload) GetAcks() [][]byte
- func (x *Payload) GetGroupOffers() []*Offer
- func (x *Payload) GetMessages() []*Message
- func (x *Payload) GetOffers() [][]byte
- func (x *Payload) GetRequests() [][]byte
- func (m *Payload) IsValid() bool
- func (*Payload) ProtoMessage()
- func (x *Payload) ProtoReflect() protoreflect.Message
- func (x *Payload) Reset()
- func (x *Payload) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_sync_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { GroupId []byte `protobuf:"bytes,6001,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` Timestamp int64 `protobuf:"varint,6002,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Body []byte `protobuf:"bytes,6003,opt,name=body,proto3" json:"body,omitempty"` // contains filtered or unexported fields }
func (*Message) Descriptor
deprecated
func (*Message) GetGroupId ¶
func (*Message) GetTimestamp ¶
func (*Message) ProtoMessage ¶
func (*Message) ProtoMessage()
func (*Message) ProtoReflect ¶ added in v0.0.26
func (x *Message) ProtoReflect() protoreflect.Message
type Offer ¶
type Offer struct { GroupId []byte `protobuf:"bytes,1,opt,name=group_id,json=groupId,proto3" json:"group_id,omitempty"` MessageIds [][]byte `protobuf:"bytes,2,rep,name=message_ids,json=messageIds,proto3" json:"message_ids,omitempty"` // contains filtered or unexported fields }
func (*Offer) Descriptor
deprecated
func (*Offer) GetGroupId ¶ added in v0.0.26
func (*Offer) GetMessageIds ¶ added in v0.0.26
func (*Offer) ProtoMessage ¶
func (*Offer) ProtoMessage()
func (*Offer) ProtoReflect ¶ added in v0.0.26
func (x *Offer) ProtoReflect() protoreflect.Message
type Payload ¶
type Payload struct { Acks [][]byte `protobuf:"bytes,5001,rep,name=acks,proto3" json:"acks,omitempty"` Offers [][]byte `protobuf:"bytes,5002,rep,name=offers,proto3" json:"offers,omitempty"` Requests [][]byte `protobuf:"bytes,5003,rep,name=requests,proto3" json:"requests,omitempty"` Messages []*Message `protobuf:"bytes,5004,rep,name=messages,proto3" json:"messages,omitempty"` GroupOffers []*Offer `protobuf:"bytes,5005,rep,name=group_offers,json=groupOffers,proto3" json:"group_offers,omitempty"` // contains filtered or unexported fields }
func (*Payload) Descriptor
deprecated
func (*Payload) GetGroupOffers ¶ added in v0.0.26
func (*Payload) GetMessages ¶
func (*Payload) GetRequests ¶ added in v0.0.16
func (*Payload) IsValid ¶ added in v0.0.26
IsValid checks whether there are any known field in the protobuf message
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) ProtoReflect ¶ added in v0.0.26
func (x *Payload) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.