Documentation ¶
Index ¶
- Variables
- func NewRKSyncMessageComparator() common.MessageReplcaingPolicy
- func RegisterRKSyncServer(s *grpc.Server, srv RKSyncServer)
- type Acknowledgement
- func (*Acknowledgement) Descriptor() ([]byte, []int)
- func (m *Acknowledgement) Marshal() (dAtA []byte, err error)
- func (m *Acknowledgement) MarshalTo(dAtA []byte) (int, error)
- func (*Acknowledgement) ProtoMessage()
- func (m *Acknowledgement) Reset()
- func (m *Acknowledgement) Size() (n int)
- func (m *Acknowledgement) String() string
- func (m *Acknowledgement) Unmarshal(dAtA []byte) error
- func (m *Acknowledgement) XXX_DiscardUnknown()
- func (m *Acknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Acknowledgement) XXX_Merge(src proto.Message)
- func (m *Acknowledgement) XXX_Size() int
- func (m *Acknowledgement) XXX_Unmarshal(b []byte) error
- type AliveMessage
- func (*AliveMessage) Descriptor() ([]byte, []int)
- func (m *AliveMessage) Marshal() (dAtA []byte, err error)
- func (m *AliveMessage) MarshalTo(dAtA []byte) (int, error)
- func (*AliveMessage) ProtoMessage()
- func (m *AliveMessage) Reset()
- func (m *AliveMessage) Size() (n int)
- func (m *AliveMessage) String() string
- func (m *AliveMessage) Unmarshal(dAtA []byte) error
- func (m *AliveMessage) XXX_DiscardUnknown()
- func (m *AliveMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AliveMessage) XXX_Merge(src proto.Message)
- func (m *AliveMessage) XXX_Size() int
- func (m *AliveMessage) XXX_Unmarshal(b []byte) error
- type AppendMetadata
- func (*AppendMetadata) Descriptor() ([]byte, []int)
- func (m *AppendMetadata) Marshal() (dAtA []byte, err error)
- func (m *AppendMetadata) MarshalTo(dAtA []byte) (int, error)
- func (*AppendMetadata) ProtoMessage()
- func (m *AppendMetadata) Reset()
- func (m *AppendMetadata) Size() (n int)
- func (m *AppendMetadata) String() string
- func (m *AppendMetadata) Unmarshal(dAtA []byte) error
- func (m *AppendMetadata) XXX_DiscardUnknown()
- func (m *AppendMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppendMetadata) XXX_Merge(src proto.Message)
- func (m *AppendMetadata) XXX_Size() int
- func (m *AppendMetadata) XXX_Unmarshal(b []byte) error
- type AppendRequest
- func (*AppendRequest) Descriptor() ([]byte, []int)
- func (m *AppendRequest) Marshal() (dAtA []byte, err error)
- func (m *AppendRequest) MarshalTo(dAtA []byte) (int, error)
- func (*AppendRequest) ProtoMessage()
- func (m *AppendRequest) Reset()
- func (m *AppendRequest) Size() (n int)
- func (m *AppendRequest) String() string
- func (m *AppendRequest) Unmarshal(dAtA []byte) error
- func (m *AppendRequest) XXX_DiscardUnknown()
- func (m *AppendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *AppendRequest) XXX_Merge(src proto.Message)
- func (m *AppendRequest) XXX_Size() int
- func (m *AppendRequest) XXX_Unmarshal(b []byte) error
- type ChainState
- func (*ChainState) Descriptor() ([]byte, []int)
- func (m *ChainState) GetChainStateInfo() (*ChainStateInfo, error)
- func (m *ChainState) Marshal() (dAtA []byte, err error)
- func (m *ChainState) MarshalTo(dAtA []byte) (int, error)
- func (*ChainState) ProtoMessage()
- func (m *ChainState) Reset()
- func (m *ChainState) Size() (n int)
- func (m *ChainState) String() string
- func (m *ChainState) Unmarshal(dAtA []byte) error
- func (m *ChainState) XXX_DiscardUnknown()
- func (m *ChainState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainState) XXX_Merge(src proto.Message)
- func (m *ChainState) XXX_Size() int
- func (m *ChainState) XXX_Unmarshal(b []byte) error
- type ChainStateInfo
- func (*ChainStateInfo) Descriptor() ([]byte, []int)
- func (m *ChainStateInfo) Marshal() (dAtA []byte, err error)
- func (m *ChainStateInfo) MarshalTo(dAtA []byte) (int, error)
- func (*ChainStateInfo) ProtoMessage()
- func (m *ChainStateInfo) Reset()
- func (si *ChainStateInfo) Sign(signer Signer) (*Envelope, error)
- func (m *ChainStateInfo) Size() (n int)
- func (m *ChainStateInfo) String() string
- func (m *ChainStateInfo) Unmarshal(dAtA []byte) error
- func (m *ChainStateInfo) XXX_DiscardUnknown()
- func (m *ChainStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainStateInfo) XXX_Merge(src proto.Message)
- func (m *ChainStateInfo) XXX_Size() int
- func (m *ChainStateInfo) XXX_Unmarshal(b []byte) error
- type ChainStatePullRequest
- func (*ChainStatePullRequest) Descriptor() ([]byte, []int)
- func (m *ChainStatePullRequest) Marshal() (dAtA []byte, err error)
- func (m *ChainStatePullRequest) MarshalTo(dAtA []byte) (int, error)
- func (*ChainStatePullRequest) ProtoMessage()
- func (m *ChainStatePullRequest) Reset()
- func (m *ChainStatePullRequest) Size() (n int)
- func (m *ChainStatePullRequest) String() string
- func (m *ChainStatePullRequest) Unmarshal(dAtA []byte) error
- func (m *ChainStatePullRequest) XXX_DiscardUnknown()
- func (m *ChainStatePullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainStatePullRequest) XXX_Merge(src proto.Message)
- func (m *ChainStatePullRequest) XXX_Size() int
- func (m *ChainStatePullRequest) XXX_Unmarshal(b []byte) error
- type ChainStatePullResponse
- func (*ChainStatePullResponse) Descriptor() ([]byte, []int)
- func (m *ChainStatePullResponse) Marshal() (dAtA []byte, err error)
- func (m *ChainStatePullResponse) MarshalTo(dAtA []byte) (int, error)
- func (*ChainStatePullResponse) ProtoMessage()
- func (m *ChainStatePullResponse) Reset()
- func (m *ChainStatePullResponse) Size() (n int)
- func (m *ChainStatePullResponse) String() string
- func (m *ChainStatePullResponse) Unmarshal(dAtA []byte) error
- func (m *ChainStatePullResponse) XXX_DiscardUnknown()
- func (m *ChainStatePullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ChainStatePullResponse) XXX_Merge(src proto.Message)
- func (m *ChainStatePullResponse) XXX_Size() int
- func (m *ChainStatePullResponse) XXX_Unmarshal(b []byte) error
- type ConnEstablish
- func (*ConnEstablish) Descriptor() ([]byte, []int)
- func (m *ConnEstablish) Marshal() (dAtA []byte, err error)
- func (m *ConnEstablish) MarshalTo(dAtA []byte) (int, error)
- func (*ConnEstablish) ProtoMessage()
- func (m *ConnEstablish) Reset()
- func (m *ConnEstablish) Size() (n int)
- func (m *ConnEstablish) String() string
- func (m *ConnEstablish) Unmarshal(dAtA []byte) error
- func (m *ConnEstablish) XXX_DiscardUnknown()
- func (m *ConnEstablish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ConnEstablish) XXX_Merge(src proto.Message)
- func (m *ConnEstablish) XXX_Size() int
- func (m *ConnEstablish) XXX_Unmarshal(b []byte) error
- type ConnectionInfo
- type DataMessage
- func (*DataMessage) Descriptor() ([]byte, []int)
- func (m *DataMessage) Marshal() (dAtA []byte, err error)
- func (m *DataMessage) MarshalTo(dAtA []byte) (int, error)
- func (*DataMessage) ProtoMessage()
- func (m *DataMessage) Reset()
- func (m *DataMessage) Size() (n int)
- func (m *DataMessage) String() string
- func (m *DataMessage) Unmarshal(dAtA []byte) error
- func (m *DataMessage) XXX_DiscardUnknown()
- func (m *DataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataMessage) XXX_Merge(src proto.Message)
- func (m *DataMessage) XXX_Size() int
- func (m *DataMessage) XXX_Unmarshal(b []byte) error
- type DataRequest
- func (*DataRequest) Descriptor() ([]byte, []int)
- func (m *DataRequest) GetAppend() *AppendRequest
- func (m *DataRequest) GetReq() isDataRequest_Req
- func (r *DataRequest) IsAppend() bool
- func (m *DataRequest) Marshal() (dAtA []byte, err error)
- func (m *DataRequest) MarshalTo(dAtA []byte) (int, error)
- func (*DataRequest) ProtoMessage()
- func (m *DataRequest) Reset()
- func (m *DataRequest) Size() (n int)
- func (m *DataRequest) String() string
- func (m *DataRequest) Unmarshal(dAtA []byte) error
- func (m *DataRequest) XXX_DiscardUnknown()
- func (m *DataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *DataRequest) XXX_Merge(src proto.Message)
- func (*DataRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *DataRequest) XXX_Size() int
- func (m *DataRequest) XXX_Unmarshal(b []byte) error
- type DataRequest_Append
- type Envelope
- func (*Envelope) Descriptor() ([]byte, []int)
- func (m *Envelope) Marshal() (dAtA []byte, err error)
- func (m *Envelope) MarshalTo(dAtA []byte) (int, error)
- func (*Envelope) ProtoMessage()
- func (m *Envelope) Reset()
- func (m *Envelope) Size() (n int)
- func (m *Envelope) String() string
- func (e *Envelope) ToRKSyncMessage() (*SignedRKSyncMessage, error)
- func (m *Envelope) Unmarshal(dAtA []byte) error
- func (m *Envelope) XXX_DiscardUnknown()
- func (m *Envelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Envelope) XXX_Merge(src proto.Message)
- func (m *Envelope) XXX_Size() int
- func (m *Envelope) XXX_Unmarshal(b []byte) error
- type File
- func (*File) Descriptor() ([]byte, []int)
- func (m *File) Marshal() (dAtA []byte, err error)
- func (m *File) MarshalTo(dAtA []byte) (int, error)
- func (*File) ProtoMessage()
- func (m *File) Reset()
- func (m *File) Size() (n int)
- func (m *File) String() string
- func (m *File) Unmarshal(dAtA []byte) error
- func (m *File) XXX_DiscardUnknown()
- func (m *File) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *File) XXX_Merge(src proto.Message)
- func (m *File) XXX_Size() int
- func (m *File) XXX_Unmarshal(b []byte) error
- type File_Mode
- type LeaveChainMessage
- func (*LeaveChainMessage) Descriptor() ([]byte, []int)
- func (m *LeaveChainMessage) Marshal() (dAtA []byte, err error)
- func (m *LeaveChainMessage) MarshalTo(dAtA []byte) (int, error)
- func (*LeaveChainMessage) ProtoMessage()
- func (m *LeaveChainMessage) Reset()
- func (m *LeaveChainMessage) Size() (n int)
- func (m *LeaveChainMessage) String() string
- func (m *LeaveChainMessage) Unmarshal(dAtA []byte) error
- func (m *LeaveChainMessage) XXX_DiscardUnknown()
- func (m *LeaveChainMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *LeaveChainMessage) XXX_Merge(src proto.Message)
- func (m *LeaveChainMessage) XXX_Size() int
- func (m *LeaveChainMessage) XXX_Unmarshal(b []byte) error
- type Member
- func (*Member) Descriptor() ([]byte, []int)
- func (m *Member) Marshal() (dAtA []byte, err error)
- func (m *Member) MarshalTo(dAtA []byte) (int, error)
- func (*Member) ProtoMessage()
- func (m *Member) Reset()
- func (m *Member) Size() (n int)
- func (m *Member) String() string
- func (m *Member) Unmarshal(dAtA []byte) error
- func (m *Member) XXX_DiscardUnknown()
- func (m *Member) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Member) XXX_Merge(src proto.Message)
- func (m *Member) XXX_Size() int
- func (m *Member) XXX_Unmarshal(b []byte) error
- type MembershipRequest
- func (*MembershipRequest) Descriptor() ([]byte, []int)
- func (m *MembershipRequest) Marshal() (dAtA []byte, err error)
- func (m *MembershipRequest) MarshalTo(dAtA []byte) (int, error)
- func (*MembershipRequest) ProtoMessage()
- func (m *MembershipRequest) Reset()
- func (m *MembershipRequest) Size() (n int)
- func (m *MembershipRequest) String() string
- func (m *MembershipRequest) Unmarshal(dAtA []byte) error
- func (m *MembershipRequest) XXX_DiscardUnknown()
- func (m *MembershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MembershipRequest) XXX_Merge(src proto.Message)
- func (m *MembershipRequest) XXX_Size() int
- func (m *MembershipRequest) XXX_Unmarshal(b []byte) error
- type MembershipResponse
- func (*MembershipResponse) Descriptor() ([]byte, []int)
- func (m *MembershipResponse) Marshal() (dAtA []byte, err error)
- func (m *MembershipResponse) MarshalTo(dAtA []byte) (int, error)
- func (*MembershipResponse) ProtoMessage()
- func (m *MembershipResponse) Reset()
- func (m *MembershipResponse) Size() (n int)
- func (m *MembershipResponse) String() string
- func (m *MembershipResponse) Unmarshal(dAtA []byte) error
- func (m *MembershipResponse) XXX_DiscardUnknown()
- func (m *MembershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *MembershipResponse) XXX_Merge(src proto.Message)
- func (m *MembershipResponse) XXX_Size() int
- func (m *MembershipResponse) XXX_Unmarshal(b []byte) error
- type Payload
- func (*Payload) Descriptor() ([]byte, []int)
- func (m *Payload) GetAppend() *AppendMetadata
- func (m *Payload) GetMetadata() isPayload_Metadata
- func (p *Payload) IsAppend() bool
- func (m *Payload) Marshal() (dAtA []byte, err error)
- func (m *Payload) MarshalTo(dAtA []byte) (int, error)
- func (*Payload) ProtoMessage()
- func (m *Payload) Reset()
- func (m *Payload) Size() (n int)
- func (m *Payload) String() string
- func (m *Payload) Unmarshal(dAtA []byte) error
- func (m *Payload) XXX_DiscardUnknown()
- func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Payload) XXX_Merge(src proto.Message)
- func (*Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *Payload) XXX_Size() int
- func (m *Payload) XXX_Unmarshal(b []byte) error
- type Payload_Append
- type PeerTime
- func (*PeerTime) Descriptor() ([]byte, []int)
- func (m *PeerTime) Marshal() (dAtA []byte, err error)
- func (m *PeerTime) MarshalTo(dAtA []byte) (int, error)
- func (*PeerTime) ProtoMessage()
- func (m *PeerTime) Reset()
- func (m *PeerTime) Size() (n int)
- func (m *PeerTime) String() string
- func (m *PeerTime) Unmarshal(dAtA []byte) error
- func (m *PeerTime) XXX_DiscardUnknown()
- func (m *PeerTime) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PeerTime) XXX_Merge(src proto.Message)
- func (m *PeerTime) XXX_Size() int
- func (m *PeerTime) XXX_Unmarshal(b []byte) error
- type Properties
- func (*Properties) Descriptor() ([]byte, []int)
- func (m *Properties) Marshal() (dAtA []byte, err error)
- func (m *Properties) MarshalTo(dAtA []byte) (int, error)
- func (*Properties) ProtoMessage()
- func (m *Properties) Reset()
- func (m *Properties) Size() (n int)
- func (m *Properties) String() string
- func (m *Properties) Unmarshal(dAtA []byte) error
- func (m *Properties) XXX_DiscardUnknown()
- func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Properties) XXX_Merge(src proto.Message)
- func (m *Properties) XXX_Size() int
- func (m *Properties) XXX_Unmarshal(b []byte) error
- type RKSyncClient
- type RKSyncMessage
- func (*RKSyncMessage) Descriptor() ([]byte, []int)
- func (m *RKSyncMessage) GetAck() *Acknowledgement
- func (m *RKSyncMessage) GetAliveMsg() *AliveMessage
- func (m *RKSyncMessage) GetConn() *ConnEstablish
- func (m *RKSyncMessage) GetContent() isRKSyncMessage_Content
- func (m *RKSyncMessage) GetDataMsg() *DataMessage
- func (m *RKSyncMessage) GetDataReq() *DataRequest
- func (m *RKSyncMessage) GetEmpty() *types.Empty
- func (m *RKSyncMessage) GetLeaveChain() *LeaveChainMessage
- func (m *RKSyncMessage) GetMemReq() *MembershipRequest
- func (m *RKSyncMessage) GetMemRes() *MembershipResponse
- func (m *RKSyncMessage) GetState() *ChainState
- func (m *RKSyncMessage) GetStateInfo() *ChainStateInfo
- func (m *RKSyncMessage) GetStatePullRequest() *ChainStatePullRequest
- func (m *RKSyncMessage) GetStatePullResponse() *ChainStatePullResponse
- func (m *RKSyncMessage) IsAck() bool
- func (m *RKSyncMessage) IsAliveMsg() bool
- func (m *RKSyncMessage) IsChainPullRequestMsg() bool
- func (m *RKSyncMessage) IsChainStateMsg() bool
- func (m *RKSyncMessage) IsChannelRestricted() bool
- func (m *RKSyncMessage) IsDataMsg() bool
- func (m *RKSyncMessage) IsDataReq() bool
- func (m *RKSyncMessage) IsLeaveChain() bool
- func (m *RKSyncMessage) IsStateInfoMsg() bool
- func (m *RKSyncMessage) IsStatePullRequestMsg() bool
- func (m *RKSyncMessage) IsStatePullResponseMsg() bool
- func (m *RKSyncMessage) IsTagLegal() error
- func (m *RKSyncMessage) Marshal() (dAtA []byte, err error)
- func (m *RKSyncMessage) MarshalTo(dAtA []byte) (int, error)
- func (m *RKSyncMessage) NoopSign() (*SignedRKSyncMessage, error)
- func (*RKSyncMessage) ProtoMessage()
- func (m *RKSyncMessage) Reset()
- func (m *RKSyncMessage) Size() (n int)
- func (m *RKSyncMessage) String() string
- func (m *RKSyncMessage) Unmarshal(dAtA []byte) error
- func (m *RKSyncMessage) XXX_DiscardUnknown()
- func (m *RKSyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *RKSyncMessage) XXX_Merge(src proto.Message)
- func (*RKSyncMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, ...)
- func (m *RKSyncMessage) XXX_Size() int
- func (m *RKSyncMessage) XXX_Unmarshal(b []byte) error
- type RKSyncMessage_Ack
- type RKSyncMessage_AliveMsg
- type RKSyncMessage_Conn
- type RKSyncMessage_DataMsg
- type RKSyncMessage_DataReq
- type RKSyncMessage_Empty
- type RKSyncMessage_LeaveChain
- type RKSyncMessage_MemReq
- type RKSyncMessage_MemRes
- type RKSyncMessage_State
- type RKSyncMessage_StateInfo
- type RKSyncMessage_StatePullRequest
- type RKSyncMessage_StatePullResponse
- type RKSyncMessage_Tag
- type RKSyncServer
- type RKSync_SyncStreamClient
- type RKSync_SyncStreamServer
- type ReceivedMessage
- type SerializedIdentity
- func (*SerializedIdentity) Descriptor() ([]byte, []int)
- func (m *SerializedIdentity) Marshal() (dAtA []byte, err error)
- func (m *SerializedIdentity) MarshalTo(dAtA []byte) (int, error)
- func (*SerializedIdentity) ProtoMessage()
- func (m *SerializedIdentity) Reset()
- func (m *SerializedIdentity) Size() (n int)
- func (m *SerializedIdentity) String() string
- func (m *SerializedIdentity) Unmarshal(dAtA []byte) error
- func (m *SerializedIdentity) XXX_DiscardUnknown()
- func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *SerializedIdentity) XXX_Merge(src proto.Message)
- func (m *SerializedIdentity) XXX_Size() int
- func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
- type SignedRKSyncMessage
- type Signer
- type Verifier
Constants ¶
This section is empty.
Variables ¶
var ( ErrInvalidLengthIdentity = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowIdentity = fmt.Errorf("proto: integer overflow") )
var ( ErrInvalidLengthRksync = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowRksync = fmt.Errorf("proto: integer overflow") )
var File_Mode_name = map[int32]string{
0: "Append",
1: "Random",
}
var File_Mode_value = map[string]int32{
"Append": 0,
"Random": 1,
}
var RKSyncMessage_Tag_name = map[int32]string{
0: "EMPTY",
1: "CHAN_ONLY",
}
var RKSyncMessage_Tag_value = map[string]int32{
"EMPTY": 0,
"CHAN_ONLY": 1,
}
Functions ¶
func NewRKSyncMessageComparator ¶
func NewRKSyncMessageComparator() common.MessageReplcaingPolicy
NewRKSyncMessageComparator creates a MessageReplcaingPolicy
func RegisterRKSyncServer ¶
func RegisterRKSyncServer(s *grpc.Server, srv RKSyncServer)
Types ¶
type Acknowledgement ¶
type Acknowledgement struct { Error string `protobuf:"bytes,1,opt,name=error,proto3" json:"error,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Acknowledgement) Descriptor ¶
func (*Acknowledgement) Descriptor() ([]byte, []int)
func (*Acknowledgement) Marshal ¶
func (m *Acknowledgement) Marshal() (dAtA []byte, err error)
func (*Acknowledgement) ProtoMessage ¶
func (*Acknowledgement) ProtoMessage()
func (*Acknowledgement) Reset ¶
func (m *Acknowledgement) Reset()
func (*Acknowledgement) Size ¶
func (m *Acknowledgement) Size() (n int)
func (*Acknowledgement) String ¶
func (m *Acknowledgement) String() string
func (*Acknowledgement) Unmarshal ¶
func (m *Acknowledgement) Unmarshal(dAtA []byte) error
func (*Acknowledgement) XXX_DiscardUnknown ¶
func (m *Acknowledgement) XXX_DiscardUnknown()
func (*Acknowledgement) XXX_Marshal ¶
func (m *Acknowledgement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Acknowledgement) XXX_Merge ¶
func (m *Acknowledgement) XXX_Merge(src proto.Message)
func (*Acknowledgement) XXX_Size ¶
func (m *Acknowledgement) XXX_Size() int
func (*Acknowledgement) XXX_Unmarshal ¶
func (m *Acknowledgement) XXX_Unmarshal(b []byte) error
type AliveMessage ¶
type AliveMessage struct { Membership *Member `protobuf:"bytes,1,opt,name=membership,proto3" json:"membership,omitempty"` Timestamp *PeerTime `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` Identity []byte `protobuf:"bytes,3,opt,name=identity,proto3" json:"identity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AliveMessage) Descriptor ¶
func (*AliveMessage) Descriptor() ([]byte, []int)
func (*AliveMessage) Marshal ¶
func (m *AliveMessage) Marshal() (dAtA []byte, err error)
func (*AliveMessage) ProtoMessage ¶
func (*AliveMessage) ProtoMessage()
func (*AliveMessage) Reset ¶
func (m *AliveMessage) Reset()
func (*AliveMessage) Size ¶
func (m *AliveMessage) Size() (n int)
func (*AliveMessage) String ¶
func (m *AliveMessage) String() string
func (*AliveMessage) Unmarshal ¶
func (m *AliveMessage) Unmarshal(dAtA []byte) error
func (*AliveMessage) XXX_DiscardUnknown ¶
func (m *AliveMessage) XXX_DiscardUnknown()
func (*AliveMessage) XXX_Marshal ¶
func (m *AliveMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AliveMessage) XXX_Merge ¶
func (m *AliveMessage) XXX_Merge(src proto.Message)
func (*AliveMessage) XXX_Size ¶
func (m *AliveMessage) XXX_Size() int
func (*AliveMessage) XXX_Unmarshal ¶
func (m *AliveMessage) XXX_Unmarshal(b []byte) error
type AppendMetadata ¶
type AppendMetadata struct { Start int64 `protobuf:"varint,1,opt,name=start,proto3" json:"start,omitempty"` Length int64 `protobuf:"varint,2,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppendMetadata) Descriptor ¶
func (*AppendMetadata) Descriptor() ([]byte, []int)
func (*AppendMetadata) Marshal ¶
func (m *AppendMetadata) Marshal() (dAtA []byte, err error)
func (*AppendMetadata) ProtoMessage ¶
func (*AppendMetadata) ProtoMessage()
func (*AppendMetadata) Reset ¶
func (m *AppendMetadata) Reset()
func (*AppendMetadata) Size ¶
func (m *AppendMetadata) Size() (n int)
func (*AppendMetadata) String ¶
func (m *AppendMetadata) String() string
func (*AppendMetadata) Unmarshal ¶
func (m *AppendMetadata) Unmarshal(dAtA []byte) error
func (*AppendMetadata) XXX_DiscardUnknown ¶
func (m *AppendMetadata) XXX_DiscardUnknown()
func (*AppendMetadata) XXX_Marshal ¶
func (m *AppendMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppendMetadata) XXX_Merge ¶
func (m *AppendMetadata) XXX_Merge(src proto.Message)
func (*AppendMetadata) XXX_Size ¶
func (m *AppendMetadata) XXX_Size() int
func (*AppendMetadata) XXX_Unmarshal ¶
func (m *AppendMetadata) XXX_Unmarshal(b []byte) error
type AppendRequest ¶
type AppendRequest struct { Length int64 `protobuf:"varint,1,opt,name=length,proto3" json:"length,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*AppendRequest) Descriptor ¶
func (*AppendRequest) Descriptor() ([]byte, []int)
func (*AppendRequest) Marshal ¶
func (m *AppendRequest) Marshal() (dAtA []byte, err error)
func (*AppendRequest) ProtoMessage ¶
func (*AppendRequest) ProtoMessage()
func (*AppendRequest) Reset ¶
func (m *AppendRequest) Reset()
func (*AppendRequest) Size ¶
func (m *AppendRequest) Size() (n int)
func (*AppendRequest) String ¶
func (m *AppendRequest) String() string
func (*AppendRequest) Unmarshal ¶
func (m *AppendRequest) Unmarshal(dAtA []byte) error
func (*AppendRequest) XXX_DiscardUnknown ¶
func (m *AppendRequest) XXX_DiscardUnknown()
func (*AppendRequest) XXX_Marshal ¶
func (m *AppendRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*AppendRequest) XXX_Merge ¶
func (m *AppendRequest) XXX_Merge(src proto.Message)
func (*AppendRequest) XXX_Size ¶
func (m *AppendRequest) XXX_Size() int
func (*AppendRequest) XXX_Unmarshal ¶
func (m *AppendRequest) XXX_Unmarshal(b []byte) error
type ChainState ¶
type ChainState struct { SeqNum uint64 `protobuf:"varint,1,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` ChainId string `protobuf:"bytes,2,opt,name=chain_id,json=chainId,proto3" json:"chain_id,omitempty"` Envelope *Envelope `protobuf:"bytes,3,opt,name=envelope,proto3" json:"envelope,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainState) Descriptor ¶
func (*ChainState) Descriptor() ([]byte, []int)
func (*ChainState) GetChainStateInfo ¶
func (m *ChainState) GetChainStateInfo() (*ChainStateInfo, error)
GetChainStateInfo ...
func (*ChainState) Marshal ¶
func (m *ChainState) Marshal() (dAtA []byte, err error)
func (*ChainState) ProtoMessage ¶
func (*ChainState) ProtoMessage()
func (*ChainState) Reset ¶
func (m *ChainState) Reset()
func (*ChainState) Size ¶
func (m *ChainState) Size() (n int)
func (*ChainState) String ¶
func (m *ChainState) String() string
func (*ChainState) Unmarshal ¶
func (m *ChainState) Unmarshal(dAtA []byte) error
func (*ChainState) XXX_DiscardUnknown ¶
func (m *ChainState) XXX_DiscardUnknown()
func (*ChainState) XXX_Marshal ¶
func (m *ChainState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainState) XXX_Merge ¶
func (m *ChainState) XXX_Merge(src proto.Message)
func (*ChainState) XXX_Size ¶
func (m *ChainState) XXX_Size() int
func (*ChainState) XXX_Unmarshal ¶
func (m *ChainState) XXX_Unmarshal(b []byte) error
type ChainStateInfo ¶
type ChainStateInfo struct { Leader []byte `protobuf:"bytes,1,opt,name=leader,proto3" json:"leader,omitempty"` Properties *Properties `protobuf:"bytes,2,opt,name=properties,proto3" json:"properties,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainStateInfo) Descriptor ¶
func (*ChainStateInfo) Descriptor() ([]byte, []int)
func (*ChainStateInfo) Marshal ¶
func (m *ChainStateInfo) Marshal() (dAtA []byte, err error)
func (*ChainStateInfo) ProtoMessage ¶
func (*ChainStateInfo) ProtoMessage()
func (*ChainStateInfo) Reset ¶
func (m *ChainStateInfo) Reset()
func (*ChainStateInfo) Sign ¶
func (si *ChainStateInfo) Sign(signer Signer) (*Envelope, error)
Sign signs a ChainStateInfo with given Signer.
func (*ChainStateInfo) Size ¶
func (m *ChainStateInfo) Size() (n int)
func (*ChainStateInfo) String ¶
func (m *ChainStateInfo) String() string
func (*ChainStateInfo) Unmarshal ¶
func (m *ChainStateInfo) Unmarshal(dAtA []byte) error
func (*ChainStateInfo) XXX_DiscardUnknown ¶
func (m *ChainStateInfo) XXX_DiscardUnknown()
func (*ChainStateInfo) XXX_Marshal ¶
func (m *ChainStateInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainStateInfo) XXX_Merge ¶
func (m *ChainStateInfo) XXX_Merge(src proto.Message)
func (*ChainStateInfo) XXX_Size ¶
func (m *ChainStateInfo) XXX_Size() int
func (*ChainStateInfo) XXX_Unmarshal ¶
func (m *ChainStateInfo) XXX_Unmarshal(b []byte) error
type ChainStatePullRequest ¶
type ChainStatePullRequest struct { Timestamp *PeerTime `protobuf:"bytes,1,opt,name=timestamp,proto3" json:"timestamp,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainStatePullRequest) Descriptor ¶
func (*ChainStatePullRequest) Descriptor() ([]byte, []int)
func (*ChainStatePullRequest) Marshal ¶
func (m *ChainStatePullRequest) Marshal() (dAtA []byte, err error)
func (*ChainStatePullRequest) MarshalTo ¶
func (m *ChainStatePullRequest) MarshalTo(dAtA []byte) (int, error)
func (*ChainStatePullRequest) ProtoMessage ¶
func (*ChainStatePullRequest) ProtoMessage()
func (*ChainStatePullRequest) Reset ¶
func (m *ChainStatePullRequest) Reset()
func (*ChainStatePullRequest) Size ¶
func (m *ChainStatePullRequest) Size() (n int)
func (*ChainStatePullRequest) String ¶
func (m *ChainStatePullRequest) String() string
func (*ChainStatePullRequest) Unmarshal ¶
func (m *ChainStatePullRequest) Unmarshal(dAtA []byte) error
func (*ChainStatePullRequest) XXX_DiscardUnknown ¶
func (m *ChainStatePullRequest) XXX_DiscardUnknown()
func (*ChainStatePullRequest) XXX_Marshal ¶
func (m *ChainStatePullRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainStatePullRequest) XXX_Merge ¶
func (m *ChainStatePullRequest) XXX_Merge(src proto.Message)
func (*ChainStatePullRequest) XXX_Size ¶
func (m *ChainStatePullRequest) XXX_Size() int
func (*ChainStatePullRequest) XXX_Unmarshal ¶
func (m *ChainStatePullRequest) XXX_Unmarshal(b []byte) error
type ChainStatePullResponse ¶
type ChainStatePullResponse struct { Element *Envelope `protobuf:"bytes,1,opt,name=element,proto3" json:"element,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ChainStatePullResponse) Descriptor ¶
func (*ChainStatePullResponse) Descriptor() ([]byte, []int)
func (*ChainStatePullResponse) Marshal ¶
func (m *ChainStatePullResponse) Marshal() (dAtA []byte, err error)
func (*ChainStatePullResponse) MarshalTo ¶
func (m *ChainStatePullResponse) MarshalTo(dAtA []byte) (int, error)
func (*ChainStatePullResponse) ProtoMessage ¶
func (*ChainStatePullResponse) ProtoMessage()
func (*ChainStatePullResponse) Reset ¶
func (m *ChainStatePullResponse) Reset()
func (*ChainStatePullResponse) Size ¶
func (m *ChainStatePullResponse) Size() (n int)
func (*ChainStatePullResponse) String ¶
func (m *ChainStatePullResponse) String() string
func (*ChainStatePullResponse) Unmarshal ¶
func (m *ChainStatePullResponse) Unmarshal(dAtA []byte) error
func (*ChainStatePullResponse) XXX_DiscardUnknown ¶
func (m *ChainStatePullResponse) XXX_DiscardUnknown()
func (*ChainStatePullResponse) XXX_Marshal ¶
func (m *ChainStatePullResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ChainStatePullResponse) XXX_Merge ¶
func (m *ChainStatePullResponse) XXX_Merge(src proto.Message)
func (*ChainStatePullResponse) XXX_Size ¶
func (m *ChainStatePullResponse) XXX_Size() int
func (*ChainStatePullResponse) XXX_Unmarshal ¶
func (m *ChainStatePullResponse) XXX_Unmarshal(b []byte) error
type ConnEstablish ¶
type ConnEstablish struct { PkiId []byte `protobuf:"bytes,1,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` Identity []byte `protobuf:"bytes,2,opt,name=identity,proto3" json:"identity,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*ConnEstablish) Descriptor ¶
func (*ConnEstablish) Descriptor() ([]byte, []int)
func (*ConnEstablish) Marshal ¶
func (m *ConnEstablish) Marshal() (dAtA []byte, err error)
func (*ConnEstablish) ProtoMessage ¶
func (*ConnEstablish) ProtoMessage()
func (*ConnEstablish) Reset ¶
func (m *ConnEstablish) Reset()
func (*ConnEstablish) Size ¶
func (m *ConnEstablish) Size() (n int)
func (*ConnEstablish) String ¶
func (m *ConnEstablish) String() string
func (*ConnEstablish) Unmarshal ¶
func (m *ConnEstablish) Unmarshal(dAtA []byte) error
func (*ConnEstablish) XXX_DiscardUnknown ¶
func (m *ConnEstablish) XXX_DiscardUnknown()
func (*ConnEstablish) XXX_Marshal ¶
func (m *ConnEstablish) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ConnEstablish) XXX_Merge ¶
func (m *ConnEstablish) XXX_Merge(src proto.Message)
func (*ConnEstablish) XXX_Size ¶
func (m *ConnEstablish) XXX_Size() int
func (*ConnEstablish) XXX_Unmarshal ¶
func (m *ConnEstablish) XXX_Unmarshal(b []byte) error
type ConnectionInfo ¶
type ConnectionInfo struct { ID common.PKIidType Identity common.PeerIdentityType Endpoint string }
ConnectionInfo represents information about the remote peer
func (*ConnectionInfo) String ¶
func (c *ConnectionInfo) String() string
String returns a string representation of this ConnectionInfo
type DataMessage ¶
type DataMessage struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` Payload *Payload `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataMessage) Descriptor ¶
func (*DataMessage) Descriptor() ([]byte, []int)
func (*DataMessage) Marshal ¶
func (m *DataMessage) Marshal() (dAtA []byte, err error)
func (*DataMessage) ProtoMessage ¶
func (*DataMessage) ProtoMessage()
func (*DataMessage) Reset ¶
func (m *DataMessage) Reset()
func (*DataMessage) Size ¶
func (m *DataMessage) Size() (n int)
func (*DataMessage) String ¶
func (m *DataMessage) String() string
func (*DataMessage) Unmarshal ¶
func (m *DataMessage) Unmarshal(dAtA []byte) error
func (*DataMessage) XXX_DiscardUnknown ¶
func (m *DataMessage) XXX_DiscardUnknown()
func (*DataMessage) XXX_Marshal ¶
func (m *DataMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DataMessage) XXX_Merge ¶
func (m *DataMessage) XXX_Merge(src proto.Message)
func (*DataMessage) XXX_Size ¶
func (m *DataMessage) XXX_Size() int
func (*DataMessage) XXX_Unmarshal ¶
func (m *DataMessage) XXX_Unmarshal(b []byte) error
type DataRequest ¶
type DataRequest struct { FileName string `protobuf:"bytes,1,opt,name=file_name,json=fileName,proto3" json:"file_name,omitempty"` PkiId []byte `protobuf:"bytes,2,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` // Types that are valid to be assigned to Req: // *DataRequest_Append Req isDataRequest_Req `protobuf_oneof:"req"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*DataRequest) Descriptor ¶
func (*DataRequest) Descriptor() ([]byte, []int)
func (*DataRequest) GetAppend ¶
func (m *DataRequest) GetAppend() *AppendRequest
func (*DataRequest) GetReq ¶
func (m *DataRequest) GetReq() isDataRequest_Req
func (*DataRequest) IsAppend ¶
func (r *DataRequest) IsAppend() bool
IsAppend returns whether this DataRequest is a append message
func (*DataRequest) Marshal ¶
func (m *DataRequest) Marshal() (dAtA []byte, err error)
func (*DataRequest) ProtoMessage ¶
func (*DataRequest) ProtoMessage()
func (*DataRequest) Reset ¶
func (m *DataRequest) Reset()
func (*DataRequest) Size ¶
func (m *DataRequest) Size() (n int)
func (*DataRequest) String ¶
func (m *DataRequest) String() string
func (*DataRequest) Unmarshal ¶
func (m *DataRequest) Unmarshal(dAtA []byte) error
func (*DataRequest) XXX_DiscardUnknown ¶
func (m *DataRequest) XXX_DiscardUnknown()
func (*DataRequest) XXX_Marshal ¶
func (m *DataRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*DataRequest) XXX_Merge ¶
func (m *DataRequest) XXX_Merge(src proto.Message)
func (*DataRequest) XXX_OneofFuncs ¶
func (*DataRequest) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*DataRequest) XXX_Size ¶
func (m *DataRequest) XXX_Size() int
func (*DataRequest) XXX_Unmarshal ¶
func (m *DataRequest) XXX_Unmarshal(b []byte) error
type DataRequest_Append ¶
type DataRequest_Append struct {
Append *AppendRequest `protobuf:"bytes,4,opt,name=append,proto3,oneof"`
}
func (*DataRequest_Append) MarshalTo ¶
func (m *DataRequest_Append) MarshalTo(dAtA []byte) (int, error)
func (*DataRequest_Append) Size ¶
func (m *DataRequest_Append) Size() (n int)
type Envelope ¶
type Envelope struct { Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"` Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Envelope) Descriptor ¶
func (*Envelope) ProtoMessage ¶
func (*Envelope) ProtoMessage()
func (*Envelope) ToRKSyncMessage ¶
func (e *Envelope) ToRKSyncMessage() (*SignedRKSyncMessage, error)
ToRKSyncMessage unmarshals a given envelope and creates a SignedRKSyncMessage out of it.
func (*Envelope) XXX_DiscardUnknown ¶
func (m *Envelope) XXX_DiscardUnknown()
func (*Envelope) XXX_Marshal ¶
func (*Envelope) XXX_Unmarshal ¶
type File ¶
type File struct { Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` Mode File_Mode `protobuf:"varint,2,opt,name=mode,proto3,enum=protos.File_Mode" json:"mode,omitempty"` Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*File) Descriptor ¶
func (*File) ProtoMessage ¶
func (*File) ProtoMessage()
func (*File) XXX_DiscardUnknown ¶
func (m *File) XXX_DiscardUnknown()
func (*File) XXX_Unmarshal ¶
type LeaveChainMessage ¶
type LeaveChainMessage struct { ChainMac []byte `protobuf:"bytes,1,opt,name=chain_mac,json=chainMac,proto3" json:"chain_mac,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*LeaveChainMessage) Descriptor ¶
func (*LeaveChainMessage) Descriptor() ([]byte, []int)
func (*LeaveChainMessage) Marshal ¶
func (m *LeaveChainMessage) Marshal() (dAtA []byte, err error)
func (*LeaveChainMessage) MarshalTo ¶
func (m *LeaveChainMessage) MarshalTo(dAtA []byte) (int, error)
func (*LeaveChainMessage) ProtoMessage ¶
func (*LeaveChainMessage) ProtoMessage()
func (*LeaveChainMessage) Reset ¶
func (m *LeaveChainMessage) Reset()
func (*LeaveChainMessage) Size ¶
func (m *LeaveChainMessage) Size() (n int)
func (*LeaveChainMessage) String ¶
func (m *LeaveChainMessage) String() string
func (*LeaveChainMessage) Unmarshal ¶
func (m *LeaveChainMessage) Unmarshal(dAtA []byte) error
func (*LeaveChainMessage) XXX_DiscardUnknown ¶
func (m *LeaveChainMessage) XXX_DiscardUnknown()
func (*LeaveChainMessage) XXX_Marshal ¶
func (m *LeaveChainMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*LeaveChainMessage) XXX_Merge ¶
func (m *LeaveChainMessage) XXX_Merge(src proto.Message)
func (*LeaveChainMessage) XXX_Size ¶
func (m *LeaveChainMessage) XXX_Size() int
func (*LeaveChainMessage) XXX_Unmarshal ¶
func (m *LeaveChainMessage) XXX_Unmarshal(b []byte) error
type Member ¶
type Member struct { Endpoint string `protobuf:"bytes,1,opt,name=endpoint,proto3" json:"endpoint,omitempty"` PkiId []byte `protobuf:"bytes,2,opt,name=pki_id,json=pkiId,proto3" json:"pki_id,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Member) Descriptor ¶
func (*Member) ProtoMessage ¶
func (*Member) ProtoMessage()
func (*Member) XXX_DiscardUnknown ¶
func (m *Member) XXX_DiscardUnknown()
func (*Member) XXX_Marshal ¶
func (*Member) XXX_Unmarshal ¶
type MembershipRequest ¶
type MembershipRequest struct { SelfInformation *Envelope `protobuf:"bytes,1,opt,name=self_information,json=selfInformation,proto3" json:"self_information,omitempty"` Known []*Envelope `protobuf:"bytes,2,rep,name=known,proto3" json:"known,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembershipRequest) Descriptor ¶
func (*MembershipRequest) Descriptor() ([]byte, []int)
func (*MembershipRequest) Marshal ¶
func (m *MembershipRequest) Marshal() (dAtA []byte, err error)
func (*MembershipRequest) MarshalTo ¶
func (m *MembershipRequest) MarshalTo(dAtA []byte) (int, error)
func (*MembershipRequest) ProtoMessage ¶
func (*MembershipRequest) ProtoMessage()
func (*MembershipRequest) Reset ¶
func (m *MembershipRequest) Reset()
func (*MembershipRequest) Size ¶
func (m *MembershipRequest) Size() (n int)
func (*MembershipRequest) String ¶
func (m *MembershipRequest) String() string
func (*MembershipRequest) Unmarshal ¶
func (m *MembershipRequest) Unmarshal(dAtA []byte) error
func (*MembershipRequest) XXX_DiscardUnknown ¶
func (m *MembershipRequest) XXX_DiscardUnknown()
func (*MembershipRequest) XXX_Marshal ¶
func (m *MembershipRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembershipRequest) XXX_Merge ¶
func (m *MembershipRequest) XXX_Merge(src proto.Message)
func (*MembershipRequest) XXX_Size ¶
func (m *MembershipRequest) XXX_Size() int
func (*MembershipRequest) XXX_Unmarshal ¶
func (m *MembershipRequest) XXX_Unmarshal(b []byte) error
type MembershipResponse ¶
type MembershipResponse struct { Alive []*Envelope `protobuf:"bytes,1,rep,name=alive,proto3" json:"alive,omitempty"` Dead []*Envelope `protobuf:"bytes,2,rep,name=dead,proto3" json:"dead,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*MembershipResponse) Descriptor ¶
func (*MembershipResponse) Descriptor() ([]byte, []int)
func (*MembershipResponse) Marshal ¶
func (m *MembershipResponse) Marshal() (dAtA []byte, err error)
func (*MembershipResponse) MarshalTo ¶
func (m *MembershipResponse) MarshalTo(dAtA []byte) (int, error)
func (*MembershipResponse) ProtoMessage ¶
func (*MembershipResponse) ProtoMessage()
func (*MembershipResponse) Reset ¶
func (m *MembershipResponse) Reset()
func (*MembershipResponse) Size ¶
func (m *MembershipResponse) Size() (n int)
func (*MembershipResponse) String ¶
func (m *MembershipResponse) String() string
func (*MembershipResponse) Unmarshal ¶
func (m *MembershipResponse) Unmarshal(dAtA []byte) error
func (*MembershipResponse) XXX_DiscardUnknown ¶
func (m *MembershipResponse) XXX_DiscardUnknown()
func (*MembershipResponse) XXX_Marshal ¶
func (m *MembershipResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*MembershipResponse) XXX_Merge ¶
func (m *MembershipResponse) XXX_Merge(src proto.Message)
func (*MembershipResponse) XXX_Size ¶
func (m *MembershipResponse) XXX_Size() int
func (*MembershipResponse) XXX_Unmarshal ¶
func (m *MembershipResponse) XXX_Unmarshal(b []byte) error
type Payload ¶
type Payload struct { Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty"` // Types that are valid to be assigned to Metadata: // *Payload_Append Metadata isPayload_Metadata `protobuf_oneof:"metadata"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Payload) Descriptor ¶
func (*Payload) GetAppend ¶
func (m *Payload) GetAppend() *AppendMetadata
func (*Payload) GetMetadata ¶
func (m *Payload) GetMetadata() isPayload_Metadata
func (*Payload) ProtoMessage ¶
func (*Payload) ProtoMessage()
func (*Payload) XXX_DiscardUnknown ¶
func (m *Payload) XXX_DiscardUnknown()
func (*Payload) XXX_Marshal ¶
func (*Payload) XXX_OneofFuncs ¶
func (*Payload) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*Payload) XXX_Unmarshal ¶
type Payload_Append ¶
type Payload_Append struct {
Append *AppendMetadata `protobuf:"bytes,3,opt,name=append,proto3,oneof"`
}
func (*Payload_Append) Size ¶
func (m *Payload_Append) Size() (n int)
type PeerTime ¶
type PeerTime struct { IncNum uint64 `protobuf:"varint,1,opt,name=inc_num,json=incNum,proto3" json:"inc_num,omitempty"` SeqNum uint64 `protobuf:"varint,2,opt,name=seq_num,json=seqNum,proto3" json:"seq_num,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*PeerTime) Descriptor ¶
func (*PeerTime) ProtoMessage ¶
func (*PeerTime) ProtoMessage()
func (*PeerTime) XXX_DiscardUnknown ¶
func (m *PeerTime) XXX_DiscardUnknown()
func (*PeerTime) XXX_Marshal ¶
func (*PeerTime) XXX_Unmarshal ¶
type Properties ¶
type Properties struct { Members [][]byte `protobuf:"bytes,1,rep,name=members,proto3" json:"members,omitempty"` Files []*File `protobuf:"bytes,2,rep,name=files,proto3" json:"files,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*Properties) Descriptor ¶
func (*Properties) Descriptor() ([]byte, []int)
func (*Properties) Marshal ¶
func (m *Properties) Marshal() (dAtA []byte, err error)
func (*Properties) ProtoMessage ¶
func (*Properties) ProtoMessage()
func (*Properties) Reset ¶
func (m *Properties) Reset()
func (*Properties) Size ¶
func (m *Properties) Size() (n int)
func (*Properties) String ¶
func (m *Properties) String() string
func (*Properties) Unmarshal ¶
func (m *Properties) Unmarshal(dAtA []byte) error
func (*Properties) XXX_DiscardUnknown ¶
func (m *Properties) XXX_DiscardUnknown()
func (*Properties) XXX_Marshal ¶
func (m *Properties) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Properties) XXX_Merge ¶
func (m *Properties) XXX_Merge(src proto.Message)
func (*Properties) XXX_Size ¶
func (m *Properties) XXX_Size() int
func (*Properties) XXX_Unmarshal ¶
func (m *Properties) XXX_Unmarshal(b []byte) error
type RKSyncClient ¶
type RKSyncClient interface { // SyncStream is the gRPC stream used for sending and receiving messages SyncStream(ctx context.Context, opts ...grpc.CallOption) (RKSync_SyncStreamClient, error) // Ping is used to probe a remote peer's aliveness Ping(ctx context.Context, in *types.Empty, opts ...grpc.CallOption) (*types.Empty, error) }
RKSyncClient is the client API for RKSync service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewRKSyncClient ¶
func NewRKSyncClient(cc *grpc.ClientConn) RKSyncClient
type RKSyncMessage ¶
type RKSyncMessage struct { Nonce uint64 `protobuf:"varint,1,opt,name=nonce,proto3" json:"nonce,omitempty"` ChainMac []byte `protobuf:"bytes,2,opt,name=chain_mac,json=chainMac,proto3" json:"chain_mac,omitempty"` Tag RKSyncMessage_Tag `protobuf:"varint,3,opt,name=tag,proto3,enum=protos.RKSyncMessage_Tag" json:"tag,omitempty"` // Types that are valid to be assigned to Content: // *RKSyncMessage_AliveMsg // *RKSyncMessage_Empty // *RKSyncMessage_Conn // *RKSyncMessage_Ack // *RKSyncMessage_MemReq // *RKSyncMessage_MemRes // *RKSyncMessage_State // *RKSyncMessage_StatePullRequest // *RKSyncMessage_StatePullResponse // *RKSyncMessage_StateInfo // *RKSyncMessage_DataMsg // *RKSyncMessage_DataReq // *RKSyncMessage_LeaveChain Content isRKSyncMessage_Content `protobuf_oneof:"content"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*RKSyncMessage) Descriptor ¶
func (*RKSyncMessage) Descriptor() ([]byte, []int)
func (*RKSyncMessage) GetAck ¶
func (m *RKSyncMessage) GetAck() *Acknowledgement
func (*RKSyncMessage) GetAliveMsg ¶
func (m *RKSyncMessage) GetAliveMsg() *AliveMessage
func (*RKSyncMessage) GetConn ¶
func (m *RKSyncMessage) GetConn() *ConnEstablish
func (*RKSyncMessage) GetContent ¶
func (m *RKSyncMessage) GetContent() isRKSyncMessage_Content
func (*RKSyncMessage) GetDataMsg ¶
func (m *RKSyncMessage) GetDataMsg() *DataMessage
func (*RKSyncMessage) GetDataReq ¶
func (m *RKSyncMessage) GetDataReq() *DataRequest
func (*RKSyncMessage) GetEmpty ¶
func (m *RKSyncMessage) GetEmpty() *types.Empty
func (*RKSyncMessage) GetLeaveChain ¶
func (m *RKSyncMessage) GetLeaveChain() *LeaveChainMessage
func (*RKSyncMessage) GetMemReq ¶
func (m *RKSyncMessage) GetMemReq() *MembershipRequest
func (*RKSyncMessage) GetMemRes ¶
func (m *RKSyncMessage) GetMemRes() *MembershipResponse
func (*RKSyncMessage) GetState ¶
func (m *RKSyncMessage) GetState() *ChainState
func (*RKSyncMessage) GetStateInfo ¶
func (m *RKSyncMessage) GetStateInfo() *ChainStateInfo
func (*RKSyncMessage) GetStatePullRequest ¶
func (m *RKSyncMessage) GetStatePullRequest() *ChainStatePullRequest
func (*RKSyncMessage) GetStatePullResponse ¶
func (m *RKSyncMessage) GetStatePullResponse() *ChainStatePullResponse
func (*RKSyncMessage) IsAck ¶
func (m *RKSyncMessage) IsAck() bool
IsAck returns whether this RKSyncMessage is an acknowledgement
func (*RKSyncMessage) IsAliveMsg ¶
func (m *RKSyncMessage) IsAliveMsg() bool
IsAliveMsg returns whether this RKSyncMessage is an AliveMessage
func (*RKSyncMessage) IsChainPullRequestMsg ¶
func (m *RKSyncMessage) IsChainPullRequestMsg() bool
IsChainPullRequestMsg returns whether this RKSyncMessage is an ChainStatePullRequest message
func (*RKSyncMessage) IsChainStateMsg ¶
func (m *RKSyncMessage) IsChainStateMsg() bool
IsChainStateMsg returns whether this RKSyncMessage is a chain state message
func (*RKSyncMessage) IsChannelRestricted ¶
func (m *RKSyncMessage) IsChannelRestricted() bool
IsChannelRestricted returns whether this RKSyncMessage should be routed only in its channel
func (*RKSyncMessage) IsDataMsg ¶
func (m *RKSyncMessage) IsDataMsg() bool
IsDataMsg returns whether this RKSyncMessage is a data message
func (*RKSyncMessage) IsDataReq ¶
func (m *RKSyncMessage) IsDataReq() bool
IsDataReq returns whether this RKSyncMessage is a data request
func (*RKSyncMessage) IsLeaveChain ¶
func (m *RKSyncMessage) IsLeaveChain() bool
IsLeaveChain returns whether RKSyncMessage is a leave chain message
func (*RKSyncMessage) IsStateInfoMsg ¶
func (m *RKSyncMessage) IsStateInfoMsg() bool
IsStateInfoMsg returns wether this RKSyncMessage is a state info message
func (*RKSyncMessage) IsStatePullRequestMsg ¶
func (m *RKSyncMessage) IsStatePullRequestMsg() bool
IsStatePullRequestMsg returns wether this RKSyncMessage is a state pull request
func (*RKSyncMessage) IsStatePullResponseMsg ¶
func (m *RKSyncMessage) IsStatePullResponseMsg() bool
IsStatePullResponseMsg returns wether this RKSyncMessage is a state pull response
func (*RKSyncMessage) IsTagLegal ¶
func (m *RKSyncMessage) IsTagLegal() error
IsTagLegal checks the RKSyncMessage tags and inner type
func (*RKSyncMessage) Marshal ¶
func (m *RKSyncMessage) Marshal() (dAtA []byte, err error)
func (*RKSyncMessage) NoopSign ¶
func (m *RKSyncMessage) NoopSign() (*SignedRKSyncMessage, error)
NoopSign creates a SignedRKSyncMessage with a nil signature
func (*RKSyncMessage) ProtoMessage ¶
func (*RKSyncMessage) ProtoMessage()
func (*RKSyncMessage) Reset ¶
func (m *RKSyncMessage) Reset()
func (*RKSyncMessage) Size ¶
func (m *RKSyncMessage) Size() (n int)
func (*RKSyncMessage) String ¶
func (m *RKSyncMessage) String() string
func (*RKSyncMessage) Unmarshal ¶
func (m *RKSyncMessage) Unmarshal(dAtA []byte) error
func (*RKSyncMessage) XXX_DiscardUnknown ¶
func (m *RKSyncMessage) XXX_DiscardUnknown()
func (*RKSyncMessage) XXX_Marshal ¶
func (m *RKSyncMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*RKSyncMessage) XXX_Merge ¶
func (m *RKSyncMessage) XXX_Merge(src proto.Message)
func (*RKSyncMessage) XXX_OneofFuncs ¶
func (*RKSyncMessage) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{})
XXX_OneofFuncs is for the internal use of the proto package.
func (*RKSyncMessage) XXX_Size ¶
func (m *RKSyncMessage) XXX_Size() int
func (*RKSyncMessage) XXX_Unmarshal ¶
func (m *RKSyncMessage) XXX_Unmarshal(b []byte) error
type RKSyncMessage_Ack ¶
type RKSyncMessage_Ack struct {
Ack *Acknowledgement `protobuf:"bytes,8,opt,name=ack,proto3,oneof"`
}
func (*RKSyncMessage_Ack) MarshalTo ¶
func (m *RKSyncMessage_Ack) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_Ack) Size ¶
func (m *RKSyncMessage_Ack) Size() (n int)
type RKSyncMessage_AliveMsg ¶
type RKSyncMessage_AliveMsg struct {
AliveMsg *AliveMessage `protobuf:"bytes,5,opt,name=alive_msg,json=aliveMsg,proto3,oneof"`
}
func (*RKSyncMessage_AliveMsg) MarshalTo ¶
func (m *RKSyncMessage_AliveMsg) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_AliveMsg) Size ¶
func (m *RKSyncMessage_AliveMsg) Size() (n int)
type RKSyncMessage_Conn ¶
type RKSyncMessage_Conn struct {
Conn *ConnEstablish `protobuf:"bytes,7,opt,name=conn,proto3,oneof"`
}
func (*RKSyncMessage_Conn) MarshalTo ¶
func (m *RKSyncMessage_Conn) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_Conn) Size ¶
func (m *RKSyncMessage_Conn) Size() (n int)
type RKSyncMessage_DataMsg ¶
type RKSyncMessage_DataMsg struct {
DataMsg *DataMessage `protobuf:"bytes,15,opt,name=data_msg,json=dataMsg,proto3,oneof"`
}
func (*RKSyncMessage_DataMsg) MarshalTo ¶
func (m *RKSyncMessage_DataMsg) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_DataMsg) Size ¶
func (m *RKSyncMessage_DataMsg) Size() (n int)
type RKSyncMessage_DataReq ¶
type RKSyncMessage_DataReq struct {
DataReq *DataRequest `protobuf:"bytes,16,opt,name=data_req,json=dataReq,proto3,oneof"`
}
func (*RKSyncMessage_DataReq) MarshalTo ¶
func (m *RKSyncMessage_DataReq) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_DataReq) Size ¶
func (m *RKSyncMessage_DataReq) Size() (n int)
type RKSyncMessage_Empty ¶
type RKSyncMessage_Empty struct {
Empty *types.Empty `protobuf:"bytes,6,opt,name=empty,proto3,oneof"`
}
func (*RKSyncMessage_Empty) MarshalTo ¶
func (m *RKSyncMessage_Empty) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_Empty) Size ¶
func (m *RKSyncMessage_Empty) Size() (n int)
type RKSyncMessage_LeaveChain ¶
type RKSyncMessage_LeaveChain struct {
LeaveChain *LeaveChainMessage `protobuf:"bytes,17,opt,name=leave_chain,json=leaveChain,proto3,oneof"`
}
func (*RKSyncMessage_LeaveChain) MarshalTo ¶
func (m *RKSyncMessage_LeaveChain) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_LeaveChain) Size ¶
func (m *RKSyncMessage_LeaveChain) Size() (n int)
type RKSyncMessage_MemReq ¶
type RKSyncMessage_MemReq struct {
MemReq *MembershipRequest `protobuf:"bytes,9,opt,name=mem_req,json=memReq,proto3,oneof"`
}
func (*RKSyncMessage_MemReq) MarshalTo ¶
func (m *RKSyncMessage_MemReq) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_MemReq) Size ¶
func (m *RKSyncMessage_MemReq) Size() (n int)
type RKSyncMessage_MemRes ¶
type RKSyncMessage_MemRes struct {
MemRes *MembershipResponse `protobuf:"bytes,10,opt,name=mem_res,json=memRes,proto3,oneof"`
}
func (*RKSyncMessage_MemRes) MarshalTo ¶
func (m *RKSyncMessage_MemRes) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_MemRes) Size ¶
func (m *RKSyncMessage_MemRes) Size() (n int)
type RKSyncMessage_State ¶
type RKSyncMessage_State struct {
State *ChainState `protobuf:"bytes,11,opt,name=state,proto3,oneof"`
}
func (*RKSyncMessage_State) MarshalTo ¶
func (m *RKSyncMessage_State) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_State) Size ¶
func (m *RKSyncMessage_State) Size() (n int)
type RKSyncMessage_StateInfo ¶
type RKSyncMessage_StateInfo struct {
StateInfo *ChainStateInfo `protobuf:"bytes,14,opt,name=state_info,json=stateInfo,proto3,oneof"`
}
func (*RKSyncMessage_StateInfo) MarshalTo ¶
func (m *RKSyncMessage_StateInfo) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_StateInfo) Size ¶
func (m *RKSyncMessage_StateInfo) Size() (n int)
type RKSyncMessage_StatePullRequest ¶
type RKSyncMessage_StatePullRequest struct {
StatePullRequest *ChainStatePullRequest `protobuf:"bytes,12,opt,name=state_pull_request,json=statePullRequest,proto3,oneof"`
}
func (*RKSyncMessage_StatePullRequest) MarshalTo ¶
func (m *RKSyncMessage_StatePullRequest) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_StatePullRequest) Size ¶
func (m *RKSyncMessage_StatePullRequest) Size() (n int)
type RKSyncMessage_StatePullResponse ¶
type RKSyncMessage_StatePullResponse struct {
StatePullResponse *ChainStatePullResponse `protobuf:"bytes,13,opt,name=state_pull_response,json=statePullResponse,proto3,oneof"`
}
func (*RKSyncMessage_StatePullResponse) MarshalTo ¶
func (m *RKSyncMessage_StatePullResponse) MarshalTo(dAtA []byte) (int, error)
func (*RKSyncMessage_StatePullResponse) Size ¶
func (m *RKSyncMessage_StatePullResponse) Size() (n int)
type RKSyncMessage_Tag ¶
type RKSyncMessage_Tag int32
const ( RKSyncMessage_EMPTY RKSyncMessage_Tag = 0 RKSyncMessage_CHAN_ONLY RKSyncMessage_Tag = 1 )
func (RKSyncMessage_Tag) EnumDescriptor ¶
func (RKSyncMessage_Tag) EnumDescriptor() ([]byte, []int)
func (RKSyncMessage_Tag) String ¶
func (x RKSyncMessage_Tag) String() string
type RKSyncServer ¶
type RKSyncServer interface { // SyncStream is the gRPC stream used for sending and receiving messages SyncStream(RKSync_SyncStreamServer) error // Ping is used to probe a remote peer's aliveness Ping(context.Context, *types.Empty) (*types.Empty, error) }
RKSyncServer is the server API for RKSync service.
type RKSync_SyncStreamClient ¶
type RKSync_SyncStreamServer ¶
type ReceivedMessage ¶
type ReceivedMessage interface { // Respond sends a RKSyncMessage to the origin from which this ReceivedMessage was sent from Respond(msg *RKSyncMessage) // GetRKSyncMessage returns the underlying RKSyncMessage GetRKSyncMessage() *SignedRKSyncMessage // GetSourceMessage Returns the Envelope the ReceivedMessage was // constructed with GetSourceEnvelope() *Envelope // GetConnectionInfo returns information about the remote peer // that sent the message GetConnectionInfo() *ConnectionInfo // Ack returns to the sender an acknowledgement for the message // An ack can receive an error that indicates that the operation related // to the message has failed Ack(err error) }
ReceivedMessage is a RKSyncMessage wrapper that enables the user to send a message to the origin from which the ReceivedMessage was sent from.
type SerializedIdentity ¶
type SerializedIdentity struct { NodeId string `protobuf:"bytes,1,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"` IdBytes []byte `protobuf:"bytes,2,opt,name=id_bytes,json=idBytes,proto3" json:"id_bytes,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
func (*SerializedIdentity) Descriptor ¶
func (*SerializedIdentity) Descriptor() ([]byte, []int)
func (*SerializedIdentity) Marshal ¶
func (m *SerializedIdentity) Marshal() (dAtA []byte, err error)
func (*SerializedIdentity) MarshalTo ¶
func (m *SerializedIdentity) MarshalTo(dAtA []byte) (int, error)
func (*SerializedIdentity) ProtoMessage ¶
func (*SerializedIdentity) ProtoMessage()
func (*SerializedIdentity) Reset ¶
func (m *SerializedIdentity) Reset()
func (*SerializedIdentity) Size ¶
func (m *SerializedIdentity) Size() (n int)
func (*SerializedIdentity) String ¶
func (m *SerializedIdentity) String() string
func (*SerializedIdentity) Unmarshal ¶
func (m *SerializedIdentity) Unmarshal(dAtA []byte) error
func (*SerializedIdentity) XXX_DiscardUnknown ¶
func (m *SerializedIdentity) XXX_DiscardUnknown()
func (*SerializedIdentity) XXX_Marshal ¶
func (m *SerializedIdentity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*SerializedIdentity) XXX_Merge ¶
func (m *SerializedIdentity) XXX_Merge(src proto.Message)
func (*SerializedIdentity) XXX_Size ¶
func (m *SerializedIdentity) XXX_Size() int
func (*SerializedIdentity) XXX_Unmarshal ¶
func (m *SerializedIdentity) XXX_Unmarshal(b []byte) error
type SignedRKSyncMessage ¶
type SignedRKSyncMessage struct { *Envelope *RKSyncMessage }
SignedRKSyncMessage contains a RKSyncMessage and the Envelope from which it came from
func (*SignedRKSyncMessage) IsSigned ¶
func (m *SignedRKSyncMessage) IsSigned() bool
IsSigned returns whether the message has a signature in the envelope
func (*SignedRKSyncMessage) Sign ¶
func (m *SignedRKSyncMessage) Sign(signer Signer) (*Envelope, error)
Sign signs a RKSyncMessage with given Signer.
func (*SignedRKSyncMessage) String ¶
func (m *SignedRKSyncMessage) String() string
String returns a string representation of a SignedRKSyncMessage