Documentation ¶
Index ¶
- Constants
- Variables
- type AuthChallenge
- func (*AuthChallenge) Descriptor() ([]byte, []int)deprecated
- func (x *AuthChallenge) GetHashAlgorithm() HashAlgorithm
- func (x *AuthChallenge) GetSenderNonce() []byte
- func (x *AuthChallenge) GetSignatureAlgorithm() SignatureAlgorithm
- func (*AuthChallenge) ProtoMessage()
- func (x *AuthChallenge) ProtoReflect() protoreflect.Message
- func (x *AuthChallenge) Reset()
- func (x *AuthChallenge) String() string
- type AuthError
- type AuthError_ErrorType
- func (AuthError_ErrorType) Descriptor() protoreflect.EnumDescriptor
- func (x AuthError_ErrorType) Enum() *AuthError_ErrorType
- func (AuthError_ErrorType) EnumDescriptor() ([]byte, []int)deprecated
- func (x AuthError_ErrorType) Number() protoreflect.EnumNumber
- func (x AuthError_ErrorType) String() string
- func (AuthError_ErrorType) Type() protoreflect.EnumType
- func (x *AuthError_ErrorType) UnmarshalJSON(b []byte) errordeprecated
- type AuthResponse
- func (*AuthResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthResponse) GetClientAuthCertificate() []byte
- func (x *AuthResponse) GetCrl() []byte
- func (x *AuthResponse) GetHashAlgorithm() HashAlgorithm
- func (x *AuthResponse) GetIntermediateCertificate() [][]byte
- func (x *AuthResponse) GetSenderNonce() []byte
- func (x *AuthResponse) GetSignature() []byte
- func (x *AuthResponse) GetSignatureAlgorithm() SignatureAlgorithm
- func (*AuthResponse) ProtoMessage()
- func (x *AuthResponse) ProtoReflect() protoreflect.Message
- func (x *AuthResponse) Reset()
- func (x *AuthResponse) String() string
- type CastMessage
- func (*CastMessage) Descriptor() ([]byte, []int)deprecated
- func (x *CastMessage) GetDestinationId() string
- func (x *CastMessage) GetNamespace() string
- func (x *CastMessage) GetPayloadBinary() []byte
- func (x *CastMessage) GetPayloadType() CastMessage_PayloadType
- func (x *CastMessage) GetPayloadUtf8() string
- func (x *CastMessage) GetProtocolVersion() CastMessage_ProtocolVersion
- func (x *CastMessage) GetSourceId() string
- func (*CastMessage) ProtoMessage()
- func (x *CastMessage) ProtoReflect() protoreflect.Message
- func (x *CastMessage) Reset()
- func (x *CastMessage) String() string
- type CastMessage_PayloadType
- func (CastMessage_PayloadType) Descriptor() protoreflect.EnumDescriptor
- func (x CastMessage_PayloadType) Enum() *CastMessage_PayloadType
- func (CastMessage_PayloadType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CastMessage_PayloadType) Number() protoreflect.EnumNumber
- func (x CastMessage_PayloadType) String() string
- func (CastMessage_PayloadType) Type() protoreflect.EnumType
- func (x *CastMessage_PayloadType) UnmarshalJSON(b []byte) errordeprecated
- type CastMessage_ProtocolVersion
- func (CastMessage_ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
- func (x CastMessage_ProtocolVersion) Enum() *CastMessage_ProtocolVersion
- func (CastMessage_ProtocolVersion) EnumDescriptor() ([]byte, []int)deprecated
- func (x CastMessage_ProtocolVersion) Number() protoreflect.EnumNumber
- func (x CastMessage_ProtocolVersion) String() string
- func (CastMessage_ProtocolVersion) Type() protoreflect.EnumType
- func (x *CastMessage_ProtocolVersion) UnmarshalJSON(b []byte) errordeprecated
- type DeviceAuthMessage
- func (*DeviceAuthMessage) Descriptor() ([]byte, []int)deprecated
- func (x *DeviceAuthMessage) GetChallenge() *AuthChallenge
- func (x *DeviceAuthMessage) GetError() *AuthError
- func (x *DeviceAuthMessage) GetResponse() *AuthResponse
- func (*DeviceAuthMessage) ProtoMessage()
- func (x *DeviceAuthMessage) ProtoReflect() protoreflect.Message
- func (x *DeviceAuthMessage) Reset()
- func (x *DeviceAuthMessage) String() string
- type HashAlgorithm
- func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x HashAlgorithm) Enum() *HashAlgorithm
- func (HashAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x HashAlgorithm) Number() protoreflect.EnumNumber
- func (x HashAlgorithm) String() string
- func (HashAlgorithm) Type() protoreflect.EnumType
- func (x *HashAlgorithm) UnmarshalJSON(b []byte) errordeprecated
- type SignatureAlgorithm
- func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
- func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
- func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)deprecated
- func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
- func (x SignatureAlgorithm) String() string
- func (SignatureAlgorithm) Type() protoreflect.EnumType
- func (x *SignatureAlgorithm) UnmarshalJSON(b []byte) errordeprecated
Constants ¶
const ( Default_AuthChallenge_SignatureAlgorithm = SignatureAlgorithm_RSASSA_PKCS1v15 Default_AuthChallenge_HashAlgorithm = HashAlgorithm_SHA1 )
Default values for AuthChallenge fields.
const ( Default_AuthResponse_SignatureAlgorithm = SignatureAlgorithm_RSASSA_PKCS1v15 Default_AuthResponse_HashAlgorithm = HashAlgorithm_SHA1 )
Default values for AuthResponse fields.
Variables ¶
var ( SignatureAlgorithm_name = map[int32]string{ 0: "UNSPECIFIED", 1: "RSASSA_PKCS1v15", 2: "RSASSA_PSS", } SignatureAlgorithm_value = map[string]int32{ "UNSPECIFIED": 0, "RSASSA_PKCS1v15": 1, "RSASSA_PSS": 2, } )
Enum value maps for SignatureAlgorithm.
var ( HashAlgorithm_name = map[int32]string{ 0: "SHA1", 1: "SHA256", } HashAlgorithm_value = map[string]int32{ "SHA1": 0, "SHA256": 1, } )
Enum value maps for HashAlgorithm.
var ( CastMessage_ProtocolVersion_name = map[int32]string{ 0: "CASTV2_1_0", } CastMessage_ProtocolVersion_value = map[string]int32{ "CASTV2_1_0": 0, } )
Enum value maps for CastMessage_ProtocolVersion.
var ( CastMessage_PayloadType_name = map[int32]string{ 0: "STRING", 1: "BINARY", } CastMessage_PayloadType_value = map[string]int32{ "STRING": 0, "BINARY": 1, } )
Enum value maps for CastMessage_PayloadType.
var ( AuthError_ErrorType_name = map[int32]string{ 0: "INTERNAL_ERROR", 1: "NO_TLS", 2: "SIGNATURE_ALGORITHM_UNAVAILABLE", } AuthError_ErrorType_value = map[string]int32{ "INTERNAL_ERROR": 0, "NO_TLS": 1, "SIGNATURE_ALGORITHM_UNAVAILABLE": 2, } )
Enum value maps for AuthError_ErrorType.
var File_internal_cast_cast_channel_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type AuthChallenge ¶
type AuthChallenge struct { SignatureAlgorithm *SignatureAlgorithm `` /* 152-byte string literal not displayed */ SenderNonce []byte `protobuf:"bytes,2,opt,name=sender_nonce,json=senderNonce" json:"sender_nonce,omitempty"` HashAlgorithm *HashAlgorithm `` /* 132-byte string literal not displayed */ // contains filtered or unexported fields }
Messages for authentication protocol between a sender and a receiver.
func (*AuthChallenge) Descriptor
deprecated
func (*AuthChallenge) Descriptor() ([]byte, []int)
Deprecated: Use AuthChallenge.ProtoReflect.Descriptor instead.
func (*AuthChallenge) GetHashAlgorithm ¶
func (x *AuthChallenge) GetHashAlgorithm() HashAlgorithm
func (*AuthChallenge) GetSenderNonce ¶
func (x *AuthChallenge) GetSenderNonce() []byte
func (*AuthChallenge) GetSignatureAlgorithm ¶
func (x *AuthChallenge) GetSignatureAlgorithm() SignatureAlgorithm
func (*AuthChallenge) ProtoMessage ¶
func (*AuthChallenge) ProtoMessage()
func (*AuthChallenge) ProtoReflect ¶
func (x *AuthChallenge) ProtoReflect() protoreflect.Message
func (*AuthChallenge) Reset ¶
func (x *AuthChallenge) Reset()
func (*AuthChallenge) String ¶
func (x *AuthChallenge) String() string
type AuthError ¶
type AuthError struct { ErrorType *AuthError_ErrorType `protobuf:"varint,1,req,name=error_type,json=errorType,enum=cast_channel.AuthError_ErrorType" json:"error_type,omitempty"` // contains filtered or unexported fields }
func (*AuthError) Descriptor
deprecated
func (*AuthError) GetErrorType ¶
func (x *AuthError) GetErrorType() AuthError_ErrorType
func (*AuthError) ProtoMessage ¶
func (*AuthError) ProtoMessage()
func (*AuthError) ProtoReflect ¶
func (x *AuthError) ProtoReflect() protoreflect.Message
type AuthError_ErrorType ¶
type AuthError_ErrorType int32
const ( AuthError_INTERNAL_ERROR AuthError_ErrorType = 0 AuthError_NO_TLS AuthError_ErrorType = 1 // The underlying connection is not TLS AuthError_SIGNATURE_ALGORITHM_UNAVAILABLE AuthError_ErrorType = 2 )
func (AuthError_ErrorType) Descriptor ¶
func (AuthError_ErrorType) Descriptor() protoreflect.EnumDescriptor
func (AuthError_ErrorType) Enum ¶
func (x AuthError_ErrorType) Enum() *AuthError_ErrorType
func (AuthError_ErrorType) EnumDescriptor
deprecated
func (AuthError_ErrorType) EnumDescriptor() ([]byte, []int)
Deprecated: Use AuthError_ErrorType.Descriptor instead.
func (AuthError_ErrorType) Number ¶
func (x AuthError_ErrorType) Number() protoreflect.EnumNumber
func (AuthError_ErrorType) String ¶
func (x AuthError_ErrorType) String() string
func (AuthError_ErrorType) Type ¶
func (AuthError_ErrorType) Type() protoreflect.EnumType
func (*AuthError_ErrorType) UnmarshalJSON
deprecated
func (x *AuthError_ErrorType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type AuthResponse ¶
type AuthResponse struct { Signature []byte `protobuf:"bytes,1,req,name=signature" json:"signature,omitempty"` ClientAuthCertificate []byte `protobuf:"bytes,2,req,name=client_auth_certificate,json=clientAuthCertificate" json:"client_auth_certificate,omitempty"` IntermediateCertificate [][]byte `protobuf:"bytes,3,rep,name=intermediate_certificate,json=intermediateCertificate" json:"intermediate_certificate,omitempty"` SignatureAlgorithm *SignatureAlgorithm `` /* 152-byte string literal not displayed */ SenderNonce []byte `protobuf:"bytes,5,opt,name=sender_nonce,json=senderNonce" json:"sender_nonce,omitempty"` HashAlgorithm *HashAlgorithm `` /* 132-byte string literal not displayed */ Crl []byte `protobuf:"bytes,7,opt,name=crl" json:"crl,omitempty"` // contains filtered or unexported fields }
func (*AuthResponse) Descriptor
deprecated
func (*AuthResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthResponse.ProtoReflect.Descriptor instead.
func (*AuthResponse) GetClientAuthCertificate ¶
func (x *AuthResponse) GetClientAuthCertificate() []byte
func (*AuthResponse) GetCrl ¶
func (x *AuthResponse) GetCrl() []byte
func (*AuthResponse) GetHashAlgorithm ¶
func (x *AuthResponse) GetHashAlgorithm() HashAlgorithm
func (*AuthResponse) GetIntermediateCertificate ¶
func (x *AuthResponse) GetIntermediateCertificate() [][]byte
func (*AuthResponse) GetSenderNonce ¶
func (x *AuthResponse) GetSenderNonce() []byte
func (*AuthResponse) GetSignature ¶
func (x *AuthResponse) GetSignature() []byte
func (*AuthResponse) GetSignatureAlgorithm ¶
func (x *AuthResponse) GetSignatureAlgorithm() SignatureAlgorithm
func (*AuthResponse) ProtoMessage ¶
func (*AuthResponse) ProtoMessage()
func (*AuthResponse) ProtoReflect ¶
func (x *AuthResponse) ProtoReflect() protoreflect.Message
func (*AuthResponse) Reset ¶
func (x *AuthResponse) Reset()
func (*AuthResponse) String ¶
func (x *AuthResponse) String() string
type CastMessage ¶
type CastMessage struct { ProtocolVersion *CastMessage_ProtocolVersion `` /* 146-byte string literal not displayed */ // source and destination ids identify the origin and destination of the // message. They are used to route messages between endpoints that share a // device-to-device channel. // // For messages between applications: // - The sender application id is a unique identifier generated on behalf of // the sender application. // - The receiver id is always the the session id for the application. // // For messages to or from the sender or receiver platform, the special ids // 'sender-0' and 'receiver-0' can be used. // // For messages intended for all endpoints using a given channel, the // wildcard destination_id '*' can be used. SourceId *string `protobuf:"bytes,2,req,name=source_id,json=sourceId" json:"source_id,omitempty"` DestinationId *string `protobuf:"bytes,3,req,name=destination_id,json=destinationId" json:"destination_id,omitempty"` // This is the core multiplexing key. All messages are sent on a namespace // and endpoints sharing a channel listen on one or more namespaces. The // namespace defines the protocol and semantics of the message. Namespace *string `protobuf:"bytes,4,req,name=namespace" json:"namespace,omitempty"` PayloadType *CastMessage_PayloadType `` /* 130-byte string literal not displayed */ // Depending on payload_type, exactly one of the following optional fields // will always be set. PayloadUtf8 *string `protobuf:"bytes,6,opt,name=payload_utf8,json=payloadUtf8" json:"payload_utf8,omitempty"` PayloadBinary []byte `protobuf:"bytes,7,opt,name=payload_binary,json=payloadBinary" json:"payload_binary,omitempty"` // contains filtered or unexported fields }
func (*CastMessage) Descriptor
deprecated
func (*CastMessage) Descriptor() ([]byte, []int)
Deprecated: Use CastMessage.ProtoReflect.Descriptor instead.
func (*CastMessage) GetDestinationId ¶
func (x *CastMessage) GetDestinationId() string
func (*CastMessage) GetNamespace ¶
func (x *CastMessage) GetNamespace() string
func (*CastMessage) GetPayloadBinary ¶
func (x *CastMessage) GetPayloadBinary() []byte
func (*CastMessage) GetPayloadType ¶
func (x *CastMessage) GetPayloadType() CastMessage_PayloadType
func (*CastMessage) GetPayloadUtf8 ¶
func (x *CastMessage) GetPayloadUtf8() string
func (*CastMessage) GetProtocolVersion ¶
func (x *CastMessage) GetProtocolVersion() CastMessage_ProtocolVersion
func (*CastMessage) GetSourceId ¶
func (x *CastMessage) GetSourceId() string
func (*CastMessage) ProtoMessage ¶
func (*CastMessage) ProtoMessage()
func (*CastMessage) ProtoReflect ¶
func (x *CastMessage) ProtoReflect() protoreflect.Message
func (*CastMessage) Reset ¶
func (x *CastMessage) Reset()
func (*CastMessage) String ¶
func (x *CastMessage) String() string
type CastMessage_PayloadType ¶
type CastMessage_PayloadType int32
What type of data do we have in this message.
const ( CastMessage_STRING CastMessage_PayloadType = 0 CastMessage_BINARY CastMessage_PayloadType = 1 )
func (CastMessage_PayloadType) Descriptor ¶
func (CastMessage_PayloadType) Descriptor() protoreflect.EnumDescriptor
func (CastMessage_PayloadType) Enum ¶
func (x CastMessage_PayloadType) Enum() *CastMessage_PayloadType
func (CastMessage_PayloadType) EnumDescriptor
deprecated
func (CastMessage_PayloadType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CastMessage_PayloadType.Descriptor instead.
func (CastMessage_PayloadType) Number ¶
func (x CastMessage_PayloadType) Number() protoreflect.EnumNumber
func (CastMessage_PayloadType) String ¶
func (x CastMessage_PayloadType) String() string
func (CastMessage_PayloadType) Type ¶
func (CastMessage_PayloadType) Type() protoreflect.EnumType
func (*CastMessage_PayloadType) UnmarshalJSON
deprecated
func (x *CastMessage_PayloadType) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type CastMessage_ProtocolVersion ¶
type CastMessage_ProtocolVersion int32
Always pass a version of the protocol for future compatibility requirements.
const (
CastMessage_CASTV2_1_0 CastMessage_ProtocolVersion = 0
)
func (CastMessage_ProtocolVersion) Descriptor ¶
func (CastMessage_ProtocolVersion) Descriptor() protoreflect.EnumDescriptor
func (CastMessage_ProtocolVersion) Enum ¶
func (x CastMessage_ProtocolVersion) Enum() *CastMessage_ProtocolVersion
func (CastMessage_ProtocolVersion) EnumDescriptor
deprecated
func (CastMessage_ProtocolVersion) EnumDescriptor() ([]byte, []int)
Deprecated: Use CastMessage_ProtocolVersion.Descriptor instead.
func (CastMessage_ProtocolVersion) Number ¶
func (x CastMessage_ProtocolVersion) Number() protoreflect.EnumNumber
func (CastMessage_ProtocolVersion) String ¶
func (x CastMessage_ProtocolVersion) String() string
func (CastMessage_ProtocolVersion) Type ¶
func (CastMessage_ProtocolVersion) Type() protoreflect.EnumType
func (*CastMessage_ProtocolVersion) UnmarshalJSON
deprecated
func (x *CastMessage_ProtocolVersion) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type DeviceAuthMessage ¶
type DeviceAuthMessage struct { // Request fields Challenge *AuthChallenge `protobuf:"bytes,1,opt,name=challenge" json:"challenge,omitempty"` // Response fields Response *AuthResponse `protobuf:"bytes,2,opt,name=response" json:"response,omitempty"` Error *AuthError `protobuf:"bytes,3,opt,name=error" json:"error,omitempty"` // contains filtered or unexported fields }
func (*DeviceAuthMessage) Descriptor
deprecated
func (*DeviceAuthMessage) Descriptor() ([]byte, []int)
Deprecated: Use DeviceAuthMessage.ProtoReflect.Descriptor instead.
func (*DeviceAuthMessage) GetChallenge ¶
func (x *DeviceAuthMessage) GetChallenge() *AuthChallenge
func (*DeviceAuthMessage) GetError ¶
func (x *DeviceAuthMessage) GetError() *AuthError
func (*DeviceAuthMessage) GetResponse ¶
func (x *DeviceAuthMessage) GetResponse() *AuthResponse
func (*DeviceAuthMessage) ProtoMessage ¶
func (*DeviceAuthMessage) ProtoMessage()
func (*DeviceAuthMessage) ProtoReflect ¶
func (x *DeviceAuthMessage) ProtoReflect() protoreflect.Message
func (*DeviceAuthMessage) Reset ¶
func (x *DeviceAuthMessage) Reset()
func (*DeviceAuthMessage) String ¶
func (x *DeviceAuthMessage) String() string
type HashAlgorithm ¶
type HashAlgorithm int32
const ( HashAlgorithm_SHA1 HashAlgorithm = 0 HashAlgorithm_SHA256 HashAlgorithm = 1 )
func (HashAlgorithm) Descriptor ¶
func (HashAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (HashAlgorithm) Enum ¶
func (x HashAlgorithm) Enum() *HashAlgorithm
func (HashAlgorithm) EnumDescriptor
deprecated
func (HashAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use HashAlgorithm.Descriptor instead.
func (HashAlgorithm) Number ¶
func (x HashAlgorithm) Number() protoreflect.EnumNumber
func (HashAlgorithm) String ¶
func (x HashAlgorithm) String() string
func (HashAlgorithm) Type ¶
func (HashAlgorithm) Type() protoreflect.EnumType
func (*HashAlgorithm) UnmarshalJSON
deprecated
func (x *HashAlgorithm) UnmarshalJSON(b []byte) error
Deprecated: Do not use.
type SignatureAlgorithm ¶
type SignatureAlgorithm int32
const ( SignatureAlgorithm_UNSPECIFIED SignatureAlgorithm = 0 SignatureAlgorithm_RSASSA_PKCS1v15 SignatureAlgorithm = 1 SignatureAlgorithm_RSASSA_PSS SignatureAlgorithm = 2 )
func (SignatureAlgorithm) Descriptor ¶
func (SignatureAlgorithm) Descriptor() protoreflect.EnumDescriptor
func (SignatureAlgorithm) Enum ¶
func (x SignatureAlgorithm) Enum() *SignatureAlgorithm
func (SignatureAlgorithm) EnumDescriptor
deprecated
func (SignatureAlgorithm) EnumDescriptor() ([]byte, []int)
Deprecated: Use SignatureAlgorithm.Descriptor instead.
func (SignatureAlgorithm) Number ¶
func (x SignatureAlgorithm) Number() protoreflect.EnumNumber
func (SignatureAlgorithm) String ¶
func (x SignatureAlgorithm) String() string
func (SignatureAlgorithm) Type ¶
func (SignatureAlgorithm) Type() protoreflect.EnumType
func (*SignatureAlgorithm) UnmarshalJSON
deprecated
func (x *SignatureAlgorithm) UnmarshalJSON(b []byte) error
Deprecated: Do not use.