Documentation ¶
Index ¶
- Variables
- type ApplicationMsg
- func (*ApplicationMsg) Descriptor() ([]byte, []int)
- func (m *ApplicationMsg) GetMsgBody() []byte
- func (m *ApplicationMsg) GetMsgSeq() uint64
- func (m *ApplicationMsg) GetSender() string
- func (m *ApplicationMsg) GetSenderKey() []byte
- func (m *ApplicationMsg) GetSenderSign() []byte
- func (m *ApplicationMsg) GetStations() []string
- func (m *ApplicationMsg) GetTopics() []string
- func (m *ApplicationMsg) Marshal() (dAtA []byte, err error)
- func (m *ApplicationMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *ApplicationMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*ApplicationMsg) ProtoMessage()
- func (m *ApplicationMsg) Reset()
- func (m *ApplicationMsg) Size() (n int)
- func (m *ApplicationMsg) String() string
- func (m *ApplicationMsg) Unmarshal(dAtA []byte) error
- func (m *ApplicationMsg) XXX_DiscardUnknown()
- func (m *ApplicationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ApplicationMsg) XXX_Merge(src proto.Message)
- func (m *ApplicationMsg) XXX_Size() int
- func (m *ApplicationMsg) XXX_Unmarshal(b []byte) error
- type Heartbeat
- func (*Heartbeat) Descriptor() ([]byte, []int)
- func (m *Heartbeat) GetTimestamp() uint64
- func (m *Heartbeat) GetTimestampRes() uint64
- func (m *Heartbeat) Marshal() (dAtA []byte, err error)
- func (m *Heartbeat) MarshalTo(dAtA []byte) (int, error)
- func (m *Heartbeat) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Heartbeat) ProtoMessage()
- func (m *Heartbeat) Reset()
- func (m *Heartbeat) Size() (n int)
- func (m *Heartbeat) String() string
- func (m *Heartbeat) Unmarshal(dAtA []byte) error
- func (m *Heartbeat) XXX_DiscardUnknown()
- func (m *Heartbeat) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Heartbeat) XXX_Merge(src proto.Message)
- func (m *Heartbeat) XXX_Size() int
- func (m *Heartbeat) XXX_Unmarshal(b []byte) error
- type IHaveOrWant
- func (*IHaveOrWant) Descriptor() ([]byte, []int)
- func (m *IHaveOrWant) GetHave() []*MsgMetadata
- func (m *IHaveOrWant) GetPhase() IHaveOrWant_Phase
- func (m *IHaveOrWant) GetWant() []*MsgMetadata
- func (m *IHaveOrWant) Marshal() (dAtA []byte, err error)
- func (m *IHaveOrWant) MarshalTo(dAtA []byte) (int, error)
- func (m *IHaveOrWant) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*IHaveOrWant) ProtoMessage()
- func (m *IHaveOrWant) Reset()
- func (m *IHaveOrWant) Size() (n int)
- func (m *IHaveOrWant) String() string
- func (m *IHaveOrWant) Unmarshal(dAtA []byte) error
- func (m *IHaveOrWant) XXX_DiscardUnknown()
- func (m *IHaveOrWant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *IHaveOrWant) XXX_Merge(src proto.Message)
- func (m *IHaveOrWant) XXX_Size() int
- func (m *IHaveOrWant) XXX_Unmarshal(b []byte) error
- type IHaveOrWant_Phase
- type MsgMetadata
- func (*MsgMetadata) Descriptor() ([]byte, []int)
- func (m *MsgMetadata) GetMsgSeq() uint64
- func (m *MsgMetadata) GetSender() string
- func (m *MsgMetadata) GetTopic() string
- func (m *MsgMetadata) Marshal() (dAtA []byte, err error)
- func (m *MsgMetadata) MarshalTo(dAtA []byte) (int, error)
- func (m *MsgMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*MsgMetadata) ProtoMessage()
- func (m *MsgMetadata) Reset()
- func (m *MsgMetadata) Size() (n int)
- func (m *MsgMetadata) String() string
- func (m *MsgMetadata) Unmarshal(dAtA []byte) error
- func (m *MsgMetadata) XXX_DiscardUnknown()
- func (m *MsgMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MsgMetadata) XXX_Merge(src proto.Message)
- func (m *MsgMetadata) XXX_Size() int
- func (m *MsgMetadata) XXX_Unmarshal(b []byte) error
- type PeeringMsg
- func (*PeeringMsg) Descriptor() ([]byte, []int)
- func (m *PeeringMsg) GetCutOff() []string
- func (m *PeeringMsg) GetJoinUp() []string
- func (m *PeeringMsg) GetMsgSeq() uint64
- func (m *PeeringMsg) Marshal() (dAtA []byte, err error)
- func (m *PeeringMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *PeeringMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PeeringMsg) ProtoMessage()
- func (m *PeeringMsg) Reset()
- func (m *PeeringMsg) Size() (n int)
- func (m *PeeringMsg) String() string
- func (m *PeeringMsg) Unmarshal(dAtA []byte) error
- func (m *PeeringMsg) XXX_DiscardUnknown()
- func (m *PeeringMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeeringMsg) XXX_Merge(src proto.Message)
- func (m *PeeringMsg) XXX_Size() int
- func (m *PeeringMsg) XXX_Unmarshal(b []byte) error
- type PubsubMsg
- func (*PubsubMsg) Descriptor() ([]byte, []int)
- func (m *PubsubMsg) GetMsg() []*ApplicationMsg
- func (m *PubsubMsg) GetPeeringCtrl() *PeeringMsg
- func (m *PubsubMsg) GetSpreadCtrl() *IHaveOrWant
- func (m *PubsubMsg) GetTopicCtrl() *TopicMsg
- func (m *PubsubMsg) Marshal() (dAtA []byte, err error)
- func (m *PubsubMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *PubsubMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PubsubMsg) ProtoMessage()
- func (m *PubsubMsg) Reset()
- func (m *PubsubMsg) Size() (n int)
- func (m *PubsubMsg) String() string
- func (m *PubsubMsg) Unmarshal(dAtA []byte) error
- func (m *PubsubMsg) XXX_DiscardUnknown()
- func (m *PubsubMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PubsubMsg) XXX_Merge(src proto.Message)
- func (m *PubsubMsg) XXX_Size() int
- func (m *PubsubMsg) XXX_Unmarshal(b []byte) error
- type TopicMsg
- func (*TopicMsg) Descriptor() ([]byte, []int)
- func (m *TopicMsg) GetMsgSeq() uint64
- func (m *TopicMsg) GetSubscribed() []string
- func (m *TopicMsg) GetUnsubscribed() []string
- func (m *TopicMsg) Marshal() (dAtA []byte, err error)
- func (m *TopicMsg) MarshalTo(dAtA []byte) (int, error)
- func (m *TopicMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*TopicMsg) ProtoMessage()
- func (m *TopicMsg) Reset()
- func (m *TopicMsg) Size() (n int)
- func (m *TopicMsg) String() string
- func (m *TopicMsg) Unmarshal(dAtA []byte) error
- func (m *TopicMsg) XXX_DiscardUnknown()
- func (m *TopicMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *TopicMsg) XXX_Merge(src proto.Message)
- func (m *TopicMsg) XXX_Size() int
- func (m *TopicMsg) XXX_Unmarshal(b []byte) error
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthPubsubmsg = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowPubsubmsg = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupPubsubmsg = fmt.Errorf("proto: unexpected end of group") )
Functions ¶
This section is empty.
Types ¶
type ApplicationMsg ¶
type ApplicationMsg struct { Topics []string `protobuf:"bytes,1,rep,name=topics,proto3" json:"topics,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` MsgSeq uint64 `protobuf:"varint,3,opt,name=msg_seq,json=msgSeq,proto3" json:"msg_seq,omitempty"` MsgBody []byte `protobuf:"bytes,4,opt,name=msg_body,json=msgBody,proto3" json:"msg_body,omitempty"` SenderKey []byte `protobuf:"bytes,5,opt,name=sender_key,json=senderKey,proto3" json:"sender_key,omitempty"` SenderSign []byte `protobuf:"bytes,6,opt,name=sender_sign,json=senderSign,proto3" json:"sender_sign,omitempty"` Stations []string `protobuf:"bytes,7,rep,name=stations,proto3" json:"stations,omitempty"` }
func (*ApplicationMsg) Descriptor ¶
func (*ApplicationMsg) Descriptor() ([]byte, []int)
func (*ApplicationMsg) GetMsgBody ¶
func (m *ApplicationMsg) GetMsgBody() []byte
func (*ApplicationMsg) GetMsgSeq ¶
func (m *ApplicationMsg) GetMsgSeq() uint64
func (*ApplicationMsg) GetSender ¶
func (m *ApplicationMsg) GetSender() string
func (*ApplicationMsg) GetSenderKey ¶
func (m *ApplicationMsg) GetSenderKey() []byte
func (*ApplicationMsg) GetSenderSign ¶
func (m *ApplicationMsg) GetSenderSign() []byte
func (*ApplicationMsg) GetStations ¶
func (m *ApplicationMsg) GetStations() []string
func (*ApplicationMsg) GetTopics ¶
func (m *ApplicationMsg) GetTopics() []string
func (*ApplicationMsg) Marshal ¶
func (m *ApplicationMsg) Marshal() (dAtA []byte, err error)
func (*ApplicationMsg) MarshalTo ¶
func (m *ApplicationMsg) MarshalTo(dAtA []byte) (int, error)
func (*ApplicationMsg) MarshalToSizedBuffer ¶
func (m *ApplicationMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*ApplicationMsg) ProtoMessage ¶
func (*ApplicationMsg) ProtoMessage()
func (*ApplicationMsg) Reset ¶
func (m *ApplicationMsg) Reset()
func (*ApplicationMsg) Size ¶
func (m *ApplicationMsg) Size() (n int)
func (*ApplicationMsg) String ¶
func (m *ApplicationMsg) String() string
func (*ApplicationMsg) Unmarshal ¶
func (m *ApplicationMsg) Unmarshal(dAtA []byte) error
func (*ApplicationMsg) XXX_DiscardUnknown ¶
func (m *ApplicationMsg) XXX_DiscardUnknown()
func (*ApplicationMsg) XXX_Marshal ¶
func (m *ApplicationMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ApplicationMsg) XXX_Merge ¶
func (m *ApplicationMsg) XXX_Merge(src proto.Message)
func (*ApplicationMsg) XXX_Size ¶
func (m *ApplicationMsg) XXX_Size() int
func (*ApplicationMsg) XXX_Unmarshal ¶
func (m *ApplicationMsg) XXX_Unmarshal(b []byte) error
type Heartbeat ¶
type Heartbeat struct { Timestamp uint64 `protobuf:"varint,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` TimestampRes uint64 `protobuf:"varint,2,opt,name=timestamp_res,json=timestampRes,proto3" json:"timestamp_res,omitempty"` }
func (*Heartbeat) MarshalToSizedBuffer ¶
func (*Heartbeat) XXX_Marshal ¶
type IHaveOrWant ¶
type IHaveOrWant struct { Phase IHaveOrWant_Phase `protobuf:"varint,1,opt,name=phase,proto3,enum=pubsub.IHaveOrWant_Phase" json:"phase,omitempty"` Have []*MsgMetadata `protobuf:"bytes,2,rep,name=have,proto3" json:"have,omitempty"` Want []*MsgMetadata `protobuf:"bytes,3,rep,name=want,proto3" json:"want,omitempty"` }
func (*IHaveOrWant) Descriptor ¶
func (*IHaveOrWant) Descriptor() ([]byte, []int)
func (*IHaveOrWant) GetHave ¶
func (m *IHaveOrWant) GetHave() []*MsgMetadata
func (*IHaveOrWant) GetPhase ¶
func (m *IHaveOrWant) GetPhase() IHaveOrWant_Phase
func (*IHaveOrWant) GetWant ¶
func (m *IHaveOrWant) GetWant() []*MsgMetadata
func (*IHaveOrWant) Marshal ¶
func (m *IHaveOrWant) Marshal() (dAtA []byte, err error)
func (*IHaveOrWant) MarshalTo ¶
func (m *IHaveOrWant) MarshalTo(dAtA []byte) (int, error)
func (*IHaveOrWant) MarshalToSizedBuffer ¶
func (m *IHaveOrWant) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*IHaveOrWant) ProtoMessage ¶
func (*IHaveOrWant) ProtoMessage()
func (*IHaveOrWant) Reset ¶
func (m *IHaveOrWant) Reset()
func (*IHaveOrWant) Size ¶
func (m *IHaveOrWant) Size() (n int)
func (*IHaveOrWant) String ¶
func (m *IHaveOrWant) String() string
func (*IHaveOrWant) Unmarshal ¶
func (m *IHaveOrWant) Unmarshal(dAtA []byte) error
func (*IHaveOrWant) XXX_DiscardUnknown ¶
func (m *IHaveOrWant) XXX_DiscardUnknown()
func (*IHaveOrWant) XXX_Marshal ¶
func (m *IHaveOrWant) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*IHaveOrWant) XXX_Merge ¶
func (m *IHaveOrWant) XXX_Merge(src proto.Message)
func (*IHaveOrWant) XXX_Size ¶
func (m *IHaveOrWant) XXX_Size() int
func (*IHaveOrWant) XXX_Unmarshal ¶
func (m *IHaveOrWant) XXX_Unmarshal(b []byte) error
type IHaveOrWant_Phase ¶
type IHaveOrWant_Phase int32
const ( IHaveOrWant_IHave IHaveOrWant_Phase = 0 IHaveOrWant_IHaveAndIWant IHaveOrWant_Phase = 1 IHaveOrWant_IWant IHaveOrWant_Phase = 2 )
func (IHaveOrWant_Phase) EnumDescriptor ¶
func (IHaveOrWant_Phase) EnumDescriptor() ([]byte, []int)
func (IHaveOrWant_Phase) String ¶
func (x IHaveOrWant_Phase) String() string
type MsgMetadata ¶
type MsgMetadata struct { Topic string `protobuf:"bytes,1,opt,name=topic,proto3" json:"topic,omitempty"` Sender string `protobuf:"bytes,2,opt,name=sender,proto3" json:"sender,omitempty"` MsgSeq uint64 `protobuf:"varint,3,opt,name=msg_seq,json=msgSeq,proto3" json:"msg_seq,omitempty"` }
func (*MsgMetadata) Descriptor ¶
func (*MsgMetadata) Descriptor() ([]byte, []int)
func (*MsgMetadata) GetMsgSeq ¶
func (m *MsgMetadata) GetMsgSeq() uint64
func (*MsgMetadata) GetSender ¶
func (m *MsgMetadata) GetSender() string
func (*MsgMetadata) GetTopic ¶
func (m *MsgMetadata) GetTopic() string
func (*MsgMetadata) Marshal ¶
func (m *MsgMetadata) Marshal() (dAtA []byte, err error)
func (*MsgMetadata) MarshalTo ¶
func (m *MsgMetadata) MarshalTo(dAtA []byte) (int, error)
func (*MsgMetadata) MarshalToSizedBuffer ¶
func (m *MsgMetadata) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*MsgMetadata) ProtoMessage ¶
func (*MsgMetadata) ProtoMessage()
func (*MsgMetadata) Reset ¶
func (m *MsgMetadata) Reset()
func (*MsgMetadata) Size ¶
func (m *MsgMetadata) Size() (n int)
func (*MsgMetadata) String ¶
func (m *MsgMetadata) String() string
func (*MsgMetadata) Unmarshal ¶
func (m *MsgMetadata) Unmarshal(dAtA []byte) error
func (*MsgMetadata) XXX_DiscardUnknown ¶
func (m *MsgMetadata) XXX_DiscardUnknown()
func (*MsgMetadata) XXX_Marshal ¶
func (m *MsgMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MsgMetadata) XXX_Merge ¶
func (m *MsgMetadata) XXX_Merge(src proto.Message)
func (*MsgMetadata) XXX_Size ¶
func (m *MsgMetadata) XXX_Size() int
func (*MsgMetadata) XXX_Unmarshal ¶
func (m *MsgMetadata) XXX_Unmarshal(b []byte) error
type PeeringMsg ¶
type PeeringMsg struct { CutOff []string `protobuf:"bytes,1,rep,name=cut_off,json=cutOff,proto3" json:"cut_off,omitempty"` JoinUp []string `protobuf:"bytes,2,rep,name=join_up,json=joinUp,proto3" json:"join_up,omitempty"` MsgSeq uint64 `protobuf:"varint,3,opt,name=msg_seq,json=msgSeq,proto3" json:"msg_seq,omitempty"` }
func (*PeeringMsg) Descriptor ¶
func (*PeeringMsg) Descriptor() ([]byte, []int)
func (*PeeringMsg) GetCutOff ¶
func (m *PeeringMsg) GetCutOff() []string
func (*PeeringMsg) GetJoinUp ¶
func (m *PeeringMsg) GetJoinUp() []string
func (*PeeringMsg) GetMsgSeq ¶
func (m *PeeringMsg) GetMsgSeq() uint64
func (*PeeringMsg) Marshal ¶
func (m *PeeringMsg) Marshal() (dAtA []byte, err error)
func (*PeeringMsg) MarshalTo ¶
func (m *PeeringMsg) MarshalTo(dAtA []byte) (int, error)
func (*PeeringMsg) MarshalToSizedBuffer ¶
func (m *PeeringMsg) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PeeringMsg) ProtoMessage ¶
func (*PeeringMsg) ProtoMessage()
func (*PeeringMsg) Reset ¶
func (m *PeeringMsg) Reset()
func (*PeeringMsg) Size ¶
func (m *PeeringMsg) Size() (n int)
func (*PeeringMsg) String ¶
func (m *PeeringMsg) String() string
func (*PeeringMsg) Unmarshal ¶
func (m *PeeringMsg) Unmarshal(dAtA []byte) error
func (*PeeringMsg) XXX_DiscardUnknown ¶
func (m *PeeringMsg) XXX_DiscardUnknown()
func (*PeeringMsg) XXX_Marshal ¶
func (m *PeeringMsg) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PeeringMsg) XXX_Merge ¶
func (m *PeeringMsg) XXX_Merge(src proto.Message)
func (*PeeringMsg) XXX_Size ¶
func (m *PeeringMsg) XXX_Size() int
func (*PeeringMsg) XXX_Unmarshal ¶
func (m *PeeringMsg) XXX_Unmarshal(b []byte) error
type PubsubMsg ¶
type PubsubMsg struct { Msg []*ApplicationMsg `protobuf:"bytes,1,rep,name=msg,proto3" json:"msg,omitempty"` SpreadCtrl *IHaveOrWant `protobuf:"bytes,2,opt,name=spread_ctrl,json=spreadCtrl,proto3" json:"spread_ctrl,omitempty"` TopicCtrl *TopicMsg `protobuf:"bytes,3,opt,name=topic_ctrl,json=topicCtrl,proto3" json:"topic_ctrl,omitempty"` PeeringCtrl *PeeringMsg `protobuf:"bytes,4,opt,name=peering_ctrl,json=peeringCtrl,proto3" json:"peering_ctrl,omitempty"` }
func (*PubsubMsg) GetMsg ¶
func (m *PubsubMsg) GetMsg() []*ApplicationMsg
func (*PubsubMsg) GetPeeringCtrl ¶
func (m *PubsubMsg) GetPeeringCtrl() *PeeringMsg
func (*PubsubMsg) GetSpreadCtrl ¶
func (m *PubsubMsg) GetSpreadCtrl() *IHaveOrWant
func (*PubsubMsg) MarshalToSizedBuffer ¶
func (*PubsubMsg) XXX_Marshal ¶
type TopicMsg ¶
type TopicMsg struct { Subscribed []string `protobuf:"bytes,1,rep,name=subscribed,proto3" json:"subscribed,omitempty"` Unsubscribed []string `protobuf:"bytes,2,rep,name=unsubscribed,proto3" json:"unsubscribed,omitempty"` MsgSeq uint64 `protobuf:"varint,3,opt,name=msg_seq,json=msgSeq,proto3" json:"msg_seq,omitempty"` }
func (*TopicMsg) MarshalToSizedBuffer ¶
func (*TopicMsg) XXX_Marshal ¶
Click to show internal directories.
Click to hide internal directories.