Documentation ¶
Index ¶
- Variables
- type Ack
- func (*Ack) Descriptor() ([]byte, []int)
- func (m *Ack) GetError() Error
- func (m *Ack) Marshal() (dAtA []byte, err error)
- func (m *Ack) MarshalTo(dAtA []byte) (int, error)
- func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Ack) ProtoMessage()
- func (m *Ack) Reset()
- func (m *Ack) Size() (n int)
- func (m *Ack) String() string
- func (m *Ack) Unmarshal(dAtA []byte) error
- func (m *Ack) XXX_DiscardUnknown()
- func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Ack) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
- func (m *Ack) XXX_Merge(src proto.Message)
- func (m *Ack) XXX_Size() int
- func (m *Ack) XXX_Unmarshal(b []byte) error
- type Credentials
- func (*Credentials) Descriptor() ([]byte, []int)
- func (m *Credentials) GetClientVersion() string
- func (m *Credentials) GetPayload() []byte
- func (m *Credentials) GetType() CredentialsType
- func (m *Credentials) GetVersion() uint32
- func (m *Credentials) Marshal() (dAtA []byte, err error)
- func (m *Credentials) MarshalTo(dAtA []byte) (int, error)
- func (m *Credentials) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Credentials) ProtoMessage()
- func (m *Credentials) Reset()
- func (m *Credentials) Size() (n int)
- func (m *Credentials) String() string
- func (m *Credentials) Unmarshal(dAtA []byte) error
- func (m *Credentials) XXX_DiscardUnknown()
- func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Credentials) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
- func (m *Credentials) XXX_Merge(src proto.Message)
- func (m *Credentials) XXX_Size() int
- func (m *Credentials) XXX_Unmarshal(b []byte) error
- type CredentialsType
- type Error
- type PayloadSignedPeerIds
- func (*PayloadSignedPeerIds) Descriptor() ([]byte, []int)
- func (m *PayloadSignedPeerIds) GetIdentity() []byte
- func (m *PayloadSignedPeerIds) GetSign() []byte
- func (m *PayloadSignedPeerIds) Marshal() (dAtA []byte, err error)
- func (m *PayloadSignedPeerIds) MarshalTo(dAtA []byte) (int, error)
- func (m *PayloadSignedPeerIds) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*PayloadSignedPeerIds) ProtoMessage()
- func (m *PayloadSignedPeerIds) Reset()
- func (m *PayloadSignedPeerIds) Size() (n int)
- func (m *PayloadSignedPeerIds) String() string
- func (m *PayloadSignedPeerIds) Unmarshal(dAtA []byte) error
- func (m *PayloadSignedPeerIds) XXX_DiscardUnknown()
- func (m *PayloadSignedPeerIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *PayloadSignedPeerIds) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
- func (m *PayloadSignedPeerIds) XXX_Merge(src proto.Message)
- func (m *PayloadSignedPeerIds) XXX_Size() int
- func (m *PayloadSignedPeerIds) XXX_Unmarshal(b []byte) error
- type Proto
- func (*Proto) Descriptor() ([]byte, []int)
- func (m *Proto) GetProto() ProtoType
- func (m *Proto) Marshal() (dAtA []byte, err error)
- func (m *Proto) MarshalTo(dAtA []byte) (int, error)
- func (m *Proto) MarshalToSizedBuffer(dAtA []byte) (int, error)
- func (*Proto) ProtoMessage()
- func (m *Proto) Reset()
- func (m *Proto) Size() (n int)
- func (m *Proto) String() string
- func (m *Proto) Unmarshal(dAtA []byte) error
- func (m *Proto) XXX_DiscardUnknown()
- func (m *Proto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Proto) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
- func (m *Proto) XXX_Merge(src proto.Message)
- func (m *Proto) XXX_Size() int
- func (m *Proto) XXX_Unmarshal(b []byte) error
- type ProtoType
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrInvalidLengthHandshake = fmt.Errorf("proto: negative length found during unmarshaling") ErrIntOverflowHandshake = fmt.Errorf("proto: integer overflow") ErrUnexpectedEndOfGroupHandshake = fmt.Errorf("proto: unexpected end of group") )
View Source
var CredentialsType_name = map[int32]string{
0: "SkipVerify",
1: "SignedPeerIds",
}
View Source
var CredentialsType_value = map[string]int32{
"SkipVerify": 0,
"SignedPeerIds": 1,
}
View Source
var Error_name = map[int32]string{
0: "Null",
1: "Unexpected",
2: "InvalidCredentials",
3: "UnexpectedPayload",
4: "SkipVerifyNotAllowed",
5: "DeadlineExceeded",
6: "IncompatibleVersion",
7: "IncompatibleProto",
}
View Source
var Error_value = map[string]int32{
"Null": 0,
"Unexpected": 1,
"InvalidCredentials": 2,
"UnexpectedPayload": 3,
"SkipVerifyNotAllowed": 4,
"DeadlineExceeded": 5,
"IncompatibleVersion": 6,
"IncompatibleProto": 7,
}
View Source
var ProtoType_name = map[int32]string{
0: "DRPC",
}
View Source
var ProtoType_value = map[string]int32{
"DRPC": 0,
}
Functions ¶
This section is empty.
Types ¶
type Ack ¶
type Ack struct {
Error Error `protobuf:"varint,1,opt,name=error,proto3,enum=anyHandshake.Error" json:"error,omitempty"`
}
func (*Ack) Descriptor ¶
func (*Ack) ProtoMessage ¶
func (*Ack) ProtoMessage()
func (*Ack) XXX_DiscardUnknown ¶
func (m *Ack) XXX_DiscardUnknown()
func (*Ack) XXX_MarshalAppend ¶ added in v0.5.0
func (*Ack) XXX_Unmarshal ¶
type Credentials ¶
type Credentials struct { Type CredentialsType `protobuf:"varint,1,opt,name=type,proto3,enum=anyHandshake.CredentialsType" json:"type,omitempty"` Payload []byte `protobuf:"bytes,2,opt,name=payload,proto3" json:"payload,omitempty"` Version uint32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"` ClientVersion string `protobuf:"bytes,4,opt,name=clientVersion,proto3" json:"clientVersion,omitempty"` }
func (*Credentials) Descriptor ¶
func (*Credentials) Descriptor() ([]byte, []int)
func (*Credentials) GetClientVersion ¶ added in v0.2.2
func (m *Credentials) GetClientVersion() string
func (*Credentials) GetPayload ¶
func (m *Credentials) GetPayload() []byte
func (*Credentials) GetType ¶
func (m *Credentials) GetType() CredentialsType
func (*Credentials) GetVersion ¶
func (m *Credentials) GetVersion() uint32
func (*Credentials) Marshal ¶
func (m *Credentials) Marshal() (dAtA []byte, err error)
func (*Credentials) MarshalToSizedBuffer ¶
func (m *Credentials) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*Credentials) ProtoMessage ¶
func (*Credentials) ProtoMessage()
func (*Credentials) Reset ¶
func (m *Credentials) Reset()
func (*Credentials) Size ¶
func (m *Credentials) Size() (n int)
func (*Credentials) String ¶
func (m *Credentials) String() string
func (*Credentials) Unmarshal ¶
func (m *Credentials) Unmarshal(dAtA []byte) error
func (*Credentials) XXX_DiscardUnknown ¶
func (m *Credentials) XXX_DiscardUnknown()
func (*Credentials) XXX_Marshal ¶
func (m *Credentials) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*Credentials) XXX_MarshalAppend ¶ added in v0.5.0
func (m *Credentials) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
func (*Credentials) XXX_Merge ¶
func (m *Credentials) XXX_Merge(src proto.Message)
func (*Credentials) XXX_Size ¶
func (m *Credentials) XXX_Size() int
func (*Credentials) XXX_Unmarshal ¶
func (m *Credentials) XXX_Unmarshal(b []byte) error
type CredentialsType ¶
type CredentialsType int32
const ( // SkipVerify using when identity is not required, for example in p2p cases CredentialsType_SkipVerify CredentialsType = 0 // SignedPeerIds using a payload containing PayloadSignedPeerIds message CredentialsType_SignedPeerIds CredentialsType = 1 )
func (CredentialsType) EnumDescriptor ¶
func (CredentialsType) EnumDescriptor() ([]byte, []int)
func (CredentialsType) String ¶
func (x CredentialsType) String() string
type PayloadSignedPeerIds ¶
type PayloadSignedPeerIds struct { // account identity Identity []byte `protobuf:"bytes,1,opt,name=identity,proto3" json:"identity,omitempty"` // sign of (localPeerId + remotePeerId) Sign []byte `protobuf:"bytes,2,opt,name=sign,proto3" json:"sign,omitempty"` }
func (*PayloadSignedPeerIds) Descriptor ¶
func (*PayloadSignedPeerIds) Descriptor() ([]byte, []int)
func (*PayloadSignedPeerIds) GetIdentity ¶
func (m *PayloadSignedPeerIds) GetIdentity() []byte
func (*PayloadSignedPeerIds) GetSign ¶
func (m *PayloadSignedPeerIds) GetSign() []byte
func (*PayloadSignedPeerIds) Marshal ¶
func (m *PayloadSignedPeerIds) Marshal() (dAtA []byte, err error)
func (*PayloadSignedPeerIds) MarshalTo ¶
func (m *PayloadSignedPeerIds) MarshalTo(dAtA []byte) (int, error)
func (*PayloadSignedPeerIds) MarshalToSizedBuffer ¶
func (m *PayloadSignedPeerIds) MarshalToSizedBuffer(dAtA []byte) (int, error)
func (*PayloadSignedPeerIds) ProtoMessage ¶
func (*PayloadSignedPeerIds) ProtoMessage()
func (*PayloadSignedPeerIds) Reset ¶
func (m *PayloadSignedPeerIds) Reset()
func (*PayloadSignedPeerIds) Size ¶
func (m *PayloadSignedPeerIds) Size() (n int)
func (*PayloadSignedPeerIds) String ¶
func (m *PayloadSignedPeerIds) String() string
func (*PayloadSignedPeerIds) Unmarshal ¶
func (m *PayloadSignedPeerIds) Unmarshal(dAtA []byte) error
func (*PayloadSignedPeerIds) XXX_DiscardUnknown ¶
func (m *PayloadSignedPeerIds) XXX_DiscardUnknown()
func (*PayloadSignedPeerIds) XXX_Marshal ¶
func (m *PayloadSignedPeerIds) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*PayloadSignedPeerIds) XXX_MarshalAppend ¶ added in v0.5.0
func (m *PayloadSignedPeerIds) XXX_MarshalAppend(b []byte, newLen int) ([]byte, error)
func (*PayloadSignedPeerIds) XXX_Merge ¶
func (m *PayloadSignedPeerIds) XXX_Merge(src proto.Message)
func (*PayloadSignedPeerIds) XXX_Size ¶
func (m *PayloadSignedPeerIds) XXX_Size() int
func (*PayloadSignedPeerIds) XXX_Unmarshal ¶
func (m *PayloadSignedPeerIds) XXX_Unmarshal(b []byte) error
type Proto ¶ added in v0.2.0
type Proto struct {
Proto ProtoType `protobuf:"varint,1,opt,name=proto,proto3,enum=anyHandshake.ProtoType" json:"proto,omitempty"`
}
func (*Proto) Descriptor ¶ added in v0.2.0
func (*Proto) MarshalToSizedBuffer ¶ added in v0.2.0
func (*Proto) ProtoMessage ¶ added in v0.2.0
func (*Proto) ProtoMessage()
func (*Proto) XXX_DiscardUnknown ¶ added in v0.2.0
func (m *Proto) XXX_DiscardUnknown()
func (*Proto) XXX_Marshal ¶ added in v0.2.0
func (*Proto) XXX_MarshalAppend ¶ added in v0.5.0
func (*Proto) XXX_Unmarshal ¶ added in v0.2.0
Click to show internal directories.
Click to hide internal directories.