handshakeproto

package
v0.4.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 13, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

func (*Ack) GetError

func (m *Ack) GetError() Error

func (*Ack) Marshal

func (m *Ack) Marshal() (dAtA []byte, err error)

func (*Ack) MarshalTo

func (m *Ack) MarshalTo(dAtA []byte) (int, error)

func (*Ack) MarshalToSizedBuffer

func (m *Ack) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) Reset

func (m *Ack) Reset()

func (*Ack) Size

func (m *Ack) Size() (n int)

func (*Ack) String

func (m *Ack) String() string

func (*Ack) Unmarshal

func (m *Ack) Unmarshal(dAtA []byte) error

func (*Ack) XXX_DiscardUnknown

func (m *Ack) XXX_DiscardUnknown()

func (*Ack) XXX_Marshal

func (m *Ack) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Ack) XXX_Merge

func (m *Ack) XXX_Merge(src proto.Message)

func (*Ack) XXX_Size

func (m *Ack) XXX_Size() int

func (*Ack) XXX_Unmarshal

func (m *Ack) XXX_Unmarshal(b []byte) error

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) MarshalTo

func (m *Credentials) MarshalTo(dAtA []byte) (int, 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_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 Error

type Error int32
const (
	Error_Null                 Error = 0
	Error_Unexpected           Error = 1
	Error_InvalidCredentials   Error = 2
	Error_UnexpectedPayload    Error = 3
	Error_SkipVerifyNotAllowed Error = 4
	Error_DeadlineExceeded     Error = 5
	Error_IncompatibleVersion  Error = 6
	Error_IncompatibleProto    Error = 7
)

func (Error) EnumDescriptor

func (Error) EnumDescriptor() ([]byte, []int)

func (Error) String

func (x Error) 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_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) Descriptor() ([]byte, []int)

func (*Proto) GetProto added in v0.2.0

func (m *Proto) GetProto() ProtoType

func (*Proto) Marshal added in v0.2.0

func (m *Proto) Marshal() (dAtA []byte, err error)

func (*Proto) MarshalTo added in v0.2.0

func (m *Proto) MarshalTo(dAtA []byte) (int, error)

func (*Proto) MarshalToSizedBuffer added in v0.2.0

func (m *Proto) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Proto) ProtoMessage added in v0.2.0

func (*Proto) ProtoMessage()

func (*Proto) Reset added in v0.2.0

func (m *Proto) Reset()

func (*Proto) Size added in v0.2.0

func (m *Proto) Size() (n int)

func (*Proto) String added in v0.2.0

func (m *Proto) String() string

func (*Proto) Unmarshal added in v0.2.0

func (m *Proto) Unmarshal(dAtA []byte) error

func (*Proto) XXX_DiscardUnknown added in v0.2.0

func (m *Proto) XXX_DiscardUnknown()

func (*Proto) XXX_Marshal added in v0.2.0

func (m *Proto) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Proto) XXX_Merge added in v0.2.0

func (m *Proto) XXX_Merge(src proto.Message)

func (*Proto) XXX_Size added in v0.2.0

func (m *Proto) XXX_Size() int

func (*Proto) XXX_Unmarshal added in v0.2.0

func (m *Proto) XXX_Unmarshal(b []byte) error

type ProtoType added in v0.2.0

type ProtoType int32
const (
	ProtoType_DRPC ProtoType = 0
)

func (ProtoType) EnumDescriptor added in v0.2.0

func (ProtoType) EnumDescriptor() ([]byte, []int)

func (ProtoType) String added in v0.2.0

func (x ProtoType) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL