Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterHandshakeServiceServer(s grpc.ServiceRegistrar, srv HandshakeServiceServer)
- func RegisterPongServiceServer(s grpc.ServiceRegistrar, srv PongServiceServer)
- type EmailLookupScryptScheme
- func (EmailLookupScryptScheme) Descriptor() protoreflect.EnumDescriptor
- func (x EmailLookupScryptScheme) Enum() *EmailLookupScryptScheme
- func (EmailLookupScryptScheme) EnumDescriptor() ([]byte, []int)deprecated
- func (x EmailLookupScryptScheme) Number() protoreflect.EnumNumber
- func (x EmailLookupScryptScheme) String() string
- func (EmailLookupScryptScheme) Type() protoreflect.EnumType
- type HandshakeContent
- func (*HandshakeContent) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeContent) GetCreated() *timestamppb.Timestamp
- func (x *HandshakeContent) GetHandshakeId() string
- func (x *HandshakeContent) GetLevel() MinimumHandshakeLevel
- func (x *HandshakeContent) GetOriginServer() *HandshakeOriginServer
- func (x *HandshakeContent) GetOwnerAddressHex() string
- func (x *HandshakeContent) GetOwnerPublicKey() []byte
- func (x *HandshakeContent) GetRules() *HandshakeSignupRules
- func (x *HandshakeContent) GetScryptLookupEmail() string
- func (x *HandshakeContent) GetSenderAddress() string
- func (x *HandshakeContent) GetSignatureScheme() SigScheme
- func (x *HandshakeContent) GetStatus() HandshakeStatus
- func (x *HandshakeContent) GetSubtype() HandshakeSignupSubType
- func (x *HandshakeContent) GetType() HandshakeType
- func (*HandshakeContent) ProtoMessage()
- func (x *HandshakeContent) ProtoReflect() protoreflect.Message
- func (x *HandshakeContent) Reset()
- func (x *HandshakeContent) String() string
- type HandshakeHeader
- func (*HandshakeHeader) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeHeader) GetCreated() *timestamppb.Timestamp
- func (x *HandshakeHeader) GetEmailScryptLookupScheme() EmailLookupScryptScheme
- func (x *HandshakeHeader) GetSignatureScheme() SigScheme
- func (*HandshakeHeader) ProtoMessage()
- func (x *HandshakeHeader) ProtoReflect() protoreflect.Message
- func (x *HandshakeHeader) Reset()
- func (x *HandshakeHeader) String() string
- type HandshakeLookup
- func (*HandshakeLookup) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeLookup) GetAddress() string
- func (x *HandshakeLookup) GetHandshakeId() string
- func (m *HandshakeLookup) GetHandshakeLookup() isHandshakeLookup_HandshakeLookup
- func (x *HandshakeLookup) GetScryptLookupEmail() string
- func (*HandshakeLookup) ProtoMessage()
- func (x *HandshakeLookup) ProtoReflect() protoreflect.Message
- func (x *HandshakeLookup) Reset()
- func (x *HandshakeLookup) String() string
- type HandshakeLookup_Address
- type HandshakeLookup_HandshakeId
- type HandshakeLookup_ScryptLookupEmail
- type HandshakeOriginServer
- func (*HandshakeOriginServer) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeOriginServer) GetDomain() string
- func (x *HandshakeOriginServer) GetP2PServerAddress() string
- func (x *HandshakeOriginServer) GetServerIp() string
- func (*HandshakeOriginServer) ProtoMessage()
- func (x *HandshakeOriginServer) ProtoReflect() protoreflect.Message
- func (x *HandshakeOriginServer) Reset()
- func (x *HandshakeOriginServer) String() string
- type HandshakeRequest
- func (*HandshakeRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeRequest) GetHeader() *HandshakeHeader
- func (x *HandshakeRequest) GetLookup() []*HandshakeLookup
- func (x *HandshakeRequest) GetReturnOnlyIfNotDefaultHandshake() *wrapperspb.BoolValue
- func (x *HandshakeRequest) GetSenderAddress() string
- func (*HandshakeRequest) ProtoMessage()
- func (x *HandshakeRequest) ProtoReflect() protoreflect.Message
- func (x *HandshakeRequest) Reset()
- func (x *HandshakeRequest) String() string
- type HandshakeServiceClient
- type HandshakeServiceServer
- type HandshakeSignedRequest
- func (*HandshakeSignedRequest) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeSignedRequest) GetCborPayload() []byte
- func (x *HandshakeSignedRequest) GetRequest() *HandshakeRequest
- func (x *HandshakeSignedRequest) GetSignature() []byte
- func (*HandshakeSignedRequest) ProtoMessage()
- func (x *HandshakeSignedRequest) ProtoReflect() protoreflect.Message
- func (x *HandshakeSignedRequest) Reset()
- func (x *HandshakeSignedRequest) String() string
- type HandshakeSignedResponse
- func (*HandshakeSignedResponse) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeSignedResponse) GetCborPayload() []byte
- func (x *HandshakeSignedResponse) GetContent() []*HandshakeContent
- func (x *HandshakeSignedResponse) GetSignature() []byte
- func (*HandshakeSignedResponse) ProtoMessage()
- func (x *HandshakeSignedResponse) ProtoReflect() protoreflect.Message
- func (x *HandshakeSignedResponse) Reset()
- func (x *HandshakeSignedResponse) String() string
- type HandshakeSignupRules
- func (*HandshakeSignupRules) Descriptor() ([]byte, []int)deprecated
- func (x *HandshakeSignupRules) GetFrequencyMinutes() int32
- func (*HandshakeSignupRules) ProtoMessage()
- func (x *HandshakeSignupRules) ProtoReflect() protoreflect.Message
- func (x *HandshakeSignupRules) Reset()
- func (x *HandshakeSignupRules) String() string
- type HandshakeSignupSubType
- func (HandshakeSignupSubType) Descriptor() protoreflect.EnumDescriptor
- func (x HandshakeSignupSubType) Enum() *HandshakeSignupSubType
- func (HandshakeSignupSubType) EnumDescriptor() ([]byte, []int)deprecated
- func (x HandshakeSignupSubType) Number() protoreflect.EnumNumber
- func (x HandshakeSignupSubType) String() string
- func (HandshakeSignupSubType) Type() protoreflect.EnumType
- type HandshakeStatus
- func (HandshakeStatus) Descriptor() protoreflect.EnumDescriptor
- func (x HandshakeStatus) Enum() *HandshakeStatus
- func (HandshakeStatus) EnumDescriptor() ([]byte, []int)deprecated
- func (x HandshakeStatus) Number() protoreflect.EnumNumber
- func (x HandshakeStatus) String() string
- func (HandshakeStatus) Type() protoreflect.EnumType
- type HandshakeType
- func (HandshakeType) Descriptor() protoreflect.EnumDescriptor
- func (x HandshakeType) Enum() *HandshakeType
- func (HandshakeType) EnumDescriptor() ([]byte, []int)deprecated
- func (x HandshakeType) Number() protoreflect.EnumNumber
- func (x HandshakeType) String() string
- func (HandshakeType) Type() protoreflect.EnumType
- type MinimumHandshakeLevel
- func (MinimumHandshakeLevel) Descriptor() protoreflect.EnumDescriptor
- func (x MinimumHandshakeLevel) Enum() *MinimumHandshakeLevel
- func (MinimumHandshakeLevel) EnumDescriptor() ([]byte, []int)deprecated
- func (x MinimumHandshakeLevel) Number() protoreflect.EnumNumber
- func (x MinimumHandshakeLevel) String() string
- func (MinimumHandshakeLevel) Type() protoreflect.EnumType
- type PongRequest
- type PongResponse
- type PongServiceClient
- type PongServiceServer
- type SigScheme
- type UnimplementedHandshakeServiceServer
- type UnimplementedPongServiceServer
- type UnsafeHandshakeServiceServer
- type UnsafePongServiceServer
Constants ¶
const (
HandshakeService_Handshake_FullMethodName = "/handshake.HandshakeService/Handshake"
)
Variables ¶
var ( EmailLookupScryptScheme_name = map[int32]string{ 0: "SC_N32768_R8_P1_L32_B64", } EmailLookupScryptScheme_value = map[string]int32{ "SC_N32768_R8_P1_L32_B64": 0, } )
Enum value maps for EmailLookupScryptScheme.
var ( HandshakeType_name = map[int32]string{ 0: "PERSONAL", 1: "SIGNUP", 2: "SERVER_SPECIFIC", 3: "USER_SPECIFIC", } HandshakeType_value = map[string]int32{ "PERSONAL": 0, "SIGNUP": 1, "SERVER_SPECIFIC": 2, "USER_SPECIFIC": 3, } )
Enum value maps for HandshakeType.
var ( HandshakeSignupSubType_name = map[int32]string{ 0: "TRANSACTIONAL", 1: "PRODUCT", 2: "SECURITY", 3: "PROMOTION", 4: "NEWSLETTER", 5: "REQUEST", 6: "OTHER", } HandshakeSignupSubType_value = map[string]int32{ "TRANSACTIONAL": 0, "PRODUCT": 1, "SECURITY": 2, "PROMOTION": 3, "NEWSLETTER": 4, "REQUEST": 5, "OTHER": 6, } )
Enum value maps for HandshakeSignupSubType.
var ( HandshakeStatus_name = map[int32]string{ 0: "ACCEPTED", 1: "REVOKED", 2: "PENDING", } HandshakeStatus_value = map[string]int32{ "ACCEPTED": 0, "REVOKED": 1, "PENDING": 2, } )
Enum value maps for HandshakeStatus.
var ( MinimumHandshakeLevel_name = map[int32]string{ 0: "NONE", 1: "RECAPTCHAV3", 2: "POH", 3: "FACE_TO_FACE", } MinimumHandshakeLevel_value = map[string]int32{ "NONE": 0, "RECAPTCHAV3": 1, "POH": 2, "FACE_TO_FACE": 3, } )
Enum value maps for MinimumHandshakeLevel.
var ( SigScheme_name = map[int32]string{ 0: "EdDSA_X25519", } SigScheme_value = map[string]int32{ "EdDSA_X25519": 0, } )
Enum value maps for SigScheme.
var File_handshake_proto protoreflect.FileDescriptor
var File_pong_proto protoreflect.FileDescriptor
var HandshakeService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "handshake.HandshakeService", HandlerType: (*HandshakeServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Handshake", Handler: _HandshakeService_Handshake_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "handshake.proto", }
HandshakeService_ServiceDesc is the grpc.ServiceDesc for HandshakeService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var PongService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "pong.PongService", HandlerType: (*PongServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Ping", Handler: _PongService_Ping_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pong.proto", }
PongService_ServiceDesc is the grpc.ServiceDesc for PongService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterHandshakeServiceServer ¶
func RegisterHandshakeServiceServer(s grpc.ServiceRegistrar, srv HandshakeServiceServer)
func RegisterPongServiceServer ¶
func RegisterPongServiceServer(s grpc.ServiceRegistrar, srv PongServiceServer)
Types ¶
type EmailLookupScryptScheme ¶ added in v0.2.3
type EmailLookupScryptScheme int32
* REQUEST
const ( // emails must be hashed with scrypt and base64 encoded EmailLookupScryptScheme_SC_N32768_R8_P1_L32_B64 EmailLookupScryptScheme = 0 )
func (EmailLookupScryptScheme) Descriptor ¶ added in v0.2.3
func (EmailLookupScryptScheme) Descriptor() protoreflect.EnumDescriptor
func (EmailLookupScryptScheme) Enum ¶ added in v0.2.3
func (x EmailLookupScryptScheme) Enum() *EmailLookupScryptScheme
func (EmailLookupScryptScheme) EnumDescriptor
deprecated
added in
v0.2.3
func (EmailLookupScryptScheme) EnumDescriptor() ([]byte, []int)
Deprecated: Use EmailLookupScryptScheme.Descriptor instead.
func (EmailLookupScryptScheme) Number ¶ added in v0.2.3
func (x EmailLookupScryptScheme) Number() protoreflect.EnumNumber
func (EmailLookupScryptScheme) String ¶ added in v0.2.3
func (x EmailLookupScryptScheme) String() string
func (EmailLookupScryptScheme) Type ¶ added in v0.2.3
func (EmailLookupScryptScheme) Type() protoreflect.EnumType
type HandshakeContent ¶
type HandshakeContent struct { HandshakeId string `protobuf:"bytes,1,opt,name=handshake_id,json=handshakeId,proto3" json:"handshake_id,omitempty"` OriginServer *HandshakeOriginServer `protobuf:"bytes,2,opt,name=origin_server,json=originServer,proto3" json:"origin_server,omitempty"` // where the handshake was made (digitally signed) Type HandshakeType `protobuf:"varint,3,opt,name=type,proto3,enum=handshake.HandshakeType" json:"type,omitempty"` // default = origin server specific Subtype *HandshakeSignupSubType `protobuf:"varint,4,opt,name=subtype,proto3,enum=handshake.HandshakeSignupSubType,oneof" json:"subtype,omitempty"` Rules *HandshakeSignupRules `protobuf:"bytes,5,opt,name=rules,proto3,oneof" json:"rules,omitempty"` // only for signup handshakes Status HandshakeStatus `protobuf:"varint,6,opt,name=status,proto3,enum=handshake.HandshakeStatus" json:"status,omitempty"` // default = none Level MinimumHandshakeLevel `protobuf:"varint,7,opt,name=level,proto3,enum=handshake.MinimumHandshakeLevel" json:"level,omitempty"` // reverse turing test OwnerPublicKey []byte `protobuf:"bytes,8,opt,name=owner_public_key,json=ownerPublicKey,proto3" json:"owner_public_key,omitempty"` OwnerAddressHex string `protobuf:"bytes,9,opt,name=owner_address_hex,json=ownerAddressHex,proto3" json:"owner_address_hex,omitempty"` ScryptLookupEmail string `protobuf:"bytes,10,opt,name=scrypt_lookup_email,json=scryptLookupEmail,proto3" json:"scrypt_lookup_email,omitempty"` // echoes scrypt_lookup_email from request (if requested by scrypt lookup) SenderAddress string `protobuf:"bytes,11,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` Created *timestamppb.Timestamp `protobuf:"bytes,12,opt,name=created,proto3" json:"created,omitempty"` // creation timestamp SignatureScheme SigScheme `` /* 133-byte string literal not displayed */ // contains filtered or unexported fields }
func (*HandshakeContent) Descriptor
deprecated
func (*HandshakeContent) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeContent.ProtoReflect.Descriptor instead.
func (*HandshakeContent) GetCreated ¶
func (x *HandshakeContent) GetCreated() *timestamppb.Timestamp
func (*HandshakeContent) GetHandshakeId ¶
func (x *HandshakeContent) GetHandshakeId() string
func (*HandshakeContent) GetLevel ¶
func (x *HandshakeContent) GetLevel() MinimumHandshakeLevel
func (*HandshakeContent) GetOriginServer ¶
func (x *HandshakeContent) GetOriginServer() *HandshakeOriginServer
func (*HandshakeContent) GetOwnerAddressHex ¶
func (x *HandshakeContent) GetOwnerAddressHex() string
func (*HandshakeContent) GetOwnerPublicKey ¶
func (x *HandshakeContent) GetOwnerPublicKey() []byte
func (*HandshakeContent) GetRules ¶
func (x *HandshakeContent) GetRules() *HandshakeSignupRules
func (*HandshakeContent) GetScryptLookupEmail ¶ added in v0.2.6
func (x *HandshakeContent) GetScryptLookupEmail() string
func (*HandshakeContent) GetSenderAddress ¶
func (x *HandshakeContent) GetSenderAddress() string
func (*HandshakeContent) GetSignatureScheme ¶
func (x *HandshakeContent) GetSignatureScheme() SigScheme
func (*HandshakeContent) GetStatus ¶
func (x *HandshakeContent) GetStatus() HandshakeStatus
func (*HandshakeContent) GetSubtype ¶
func (x *HandshakeContent) GetSubtype() HandshakeSignupSubType
func (*HandshakeContent) GetType ¶
func (x *HandshakeContent) GetType() HandshakeType
func (*HandshakeContent) ProtoMessage ¶
func (*HandshakeContent) ProtoMessage()
func (*HandshakeContent) ProtoReflect ¶
func (x *HandshakeContent) ProtoReflect() protoreflect.Message
func (*HandshakeContent) Reset ¶
func (x *HandshakeContent) Reset()
func (*HandshakeContent) String ¶
func (x *HandshakeContent) String() string
type HandshakeHeader ¶
type HandshakeHeader struct { SignatureScheme SigScheme `` /* 132-byte string literal not displayed */ EmailScryptLookupScheme EmailLookupScryptScheme `` /* 174-byte string literal not displayed */ Created *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=created,proto3" json:"created,omitempty"` // timestamp of creation/sending // contains filtered or unexported fields }
func (*HandshakeHeader) Descriptor
deprecated
func (*HandshakeHeader) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeHeader.ProtoReflect.Descriptor instead.
func (*HandshakeHeader) GetCreated ¶
func (x *HandshakeHeader) GetCreated() *timestamppb.Timestamp
func (*HandshakeHeader) GetEmailScryptLookupScheme ¶ added in v0.2.3
func (x *HandshakeHeader) GetEmailScryptLookupScheme() EmailLookupScryptScheme
func (*HandshakeHeader) GetSignatureScheme ¶
func (x *HandshakeHeader) GetSignatureScheme() SigScheme
func (*HandshakeHeader) ProtoMessage ¶
func (*HandshakeHeader) ProtoMessage()
func (*HandshakeHeader) ProtoReflect ¶
func (x *HandshakeHeader) ProtoReflect() protoreflect.Message
func (*HandshakeHeader) Reset ¶
func (x *HandshakeHeader) Reset()
func (*HandshakeHeader) String ¶
func (x *HandshakeHeader) String() string
type HandshakeLookup ¶
type HandshakeLookup struct { // Types that are assignable to HandshakeLookup: // *HandshakeLookup_HandshakeId // *HandshakeLookup_ScryptLookupEmail // *HandshakeLookup_Address HandshakeLookup isHandshakeLookup_HandshakeLookup `protobuf_oneof:"handshake_lookup"` // contains filtered or unexported fields }
func (*HandshakeLookup) Descriptor
deprecated
func (*HandshakeLookup) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeLookup.ProtoReflect.Descriptor instead.
func (*HandshakeLookup) GetAddress ¶
func (x *HandshakeLookup) GetAddress() string
func (*HandshakeLookup) GetHandshakeId ¶
func (x *HandshakeLookup) GetHandshakeId() string
func (*HandshakeLookup) GetHandshakeLookup ¶
func (m *HandshakeLookup) GetHandshakeLookup() isHandshakeLookup_HandshakeLookup
func (*HandshakeLookup) GetScryptLookupEmail ¶ added in v0.2.3
func (x *HandshakeLookup) GetScryptLookupEmail() string
func (*HandshakeLookup) ProtoMessage ¶
func (*HandshakeLookup) ProtoMessage()
func (*HandshakeLookup) ProtoReflect ¶
func (x *HandshakeLookup) ProtoReflect() protoreflect.Message
func (*HandshakeLookup) Reset ¶
func (x *HandshakeLookup) Reset()
func (*HandshakeLookup) String ¶
func (x *HandshakeLookup) String() string
type HandshakeLookup_Address ¶
type HandshakeLookup_Address struct {
Address string `protobuf:"bytes,4,opt,name=address,proto3,oneof"` // recipient's mailio address (globally unique)
}
type HandshakeLookup_HandshakeId ¶
type HandshakeLookup_HandshakeId struct {
HandshakeId string `protobuf:"bytes,2,opt,name=handshake_id,json=handshakeId,proto3,oneof"` // handshake id on the recipient Mailio server
}
type HandshakeLookup_ScryptLookupEmail ¶ added in v0.2.3
type HandshakeLookup_ScryptLookupEmail struct {
ScryptLookupEmail string `protobuf:"bytes,3,opt,name=scrypt_lookup_email,json=scryptLookupEmail,proto3,oneof"` // recipient email hashed with scrypt
}
type HandshakeOriginServer ¶
type HandshakeOriginServer struct { Domain string `protobuf:"bytes,1,opt,name=domain,proto3" json:"domain,omitempty"` // email domain (e.g. mail.io) P2PServerAddress *string `protobuf:"bytes,2,opt,name=p2p_server_address,json=p2pServerAddress,proto3,oneof" json:"p2p_server_address,omitempty"` // optional: p2p server address ServerIp *string `protobuf:"bytes,3,opt,name=server_ip,json=serverIp,proto3,oneof" json:"server_ip,omitempty"` // optional: origin server ip // contains filtered or unexported fields }
func (*HandshakeOriginServer) Descriptor
deprecated
func (*HandshakeOriginServer) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeOriginServer.ProtoReflect.Descriptor instead.
func (*HandshakeOriginServer) GetDomain ¶
func (x *HandshakeOriginServer) GetDomain() string
func (*HandshakeOriginServer) GetP2PServerAddress ¶
func (x *HandshakeOriginServer) GetP2PServerAddress() string
func (*HandshakeOriginServer) GetServerIp ¶
func (x *HandshakeOriginServer) GetServerIp() string
func (*HandshakeOriginServer) ProtoMessage ¶
func (*HandshakeOriginServer) ProtoMessage()
func (*HandshakeOriginServer) ProtoReflect ¶
func (x *HandshakeOriginServer) ProtoReflect() protoreflect.Message
func (*HandshakeOriginServer) Reset ¶
func (x *HandshakeOriginServer) Reset()
func (*HandshakeOriginServer) String ¶
func (x *HandshakeOriginServer) String() string
type HandshakeRequest ¶
type HandshakeRequest struct { Header *HandshakeHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"` SenderAddress string `protobuf:"bytes,2,opt,name=sender_address,json=senderAddress,proto3" json:"sender_address,omitempty"` // sender's hex Mailio address (globally unique) ReturnOnlyIfNotDefaultHandshake *wrapperspb.BoolValue `` // if true, only return if handshake exists and not the default server handshake /* 162-byte string literal not displayed */ Lookup []*HandshakeLookup `protobuf:"bytes,4,rep,name=lookup,proto3" json:"lookup,omitempty"` // contains filtered or unexported fields }
func (*HandshakeRequest) Descriptor
deprecated
func (*HandshakeRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeRequest.ProtoReflect.Descriptor instead.
func (*HandshakeRequest) GetHeader ¶
func (x *HandshakeRequest) GetHeader() *HandshakeHeader
func (*HandshakeRequest) GetLookup ¶
func (x *HandshakeRequest) GetLookup() []*HandshakeLookup
func (*HandshakeRequest) GetReturnOnlyIfNotDefaultHandshake ¶ added in v0.2.7
func (x *HandshakeRequest) GetReturnOnlyIfNotDefaultHandshake() *wrapperspb.BoolValue
func (*HandshakeRequest) GetSenderAddress ¶ added in v0.2.7
func (x *HandshakeRequest) GetSenderAddress() string
func (*HandshakeRequest) ProtoMessage ¶
func (*HandshakeRequest) ProtoMessage()
func (*HandshakeRequest) ProtoReflect ¶
func (x *HandshakeRequest) ProtoReflect() protoreflect.Message
func (*HandshakeRequest) Reset ¶
func (x *HandshakeRequest) Reset()
func (*HandshakeRequest) String ¶
func (x *HandshakeRequest) String() string
type HandshakeServiceClient ¶
type HandshakeServiceClient interface {
Handshake(ctx context.Context, in *HandshakeSignedRequest, opts ...grpc.CallOption) (*HandshakeSignedResponse, error)
}
HandshakeServiceClient is the client API for HandshakeService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewHandshakeServiceClient ¶
func NewHandshakeServiceClient(cc grpc.ClientConnInterface) HandshakeServiceClient
type HandshakeServiceServer ¶
type HandshakeServiceServer interface { Handshake(context.Context, *HandshakeSignedRequest) (*HandshakeSignedResponse, error) // contains filtered or unexported methods }
HandshakeServiceServer is the server API for HandshakeService service. All implementations must embed UnimplementedHandshakeServiceServer for forward compatibility
type HandshakeSignedRequest ¶
type HandshakeSignedRequest struct { Request *HandshakeRequest `protobuf:"bytes,1,opt,name=request,proto3" json:"request,omitempty"` CborPayload []byte `protobuf:"bytes,2,opt,name=cbor_payload,json=cborPayload,proto3" json:"cbor_payload,omitempty"` // rfc8949 Consise Binary Object Representation of HandshakeRequest // Signature of cbor_payload Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*HandshakeSignedRequest) Descriptor
deprecated
func (*HandshakeSignedRequest) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeSignedRequest.ProtoReflect.Descriptor instead.
func (*HandshakeSignedRequest) GetCborPayload ¶
func (x *HandshakeSignedRequest) GetCborPayload() []byte
func (*HandshakeSignedRequest) GetRequest ¶ added in v0.2.6
func (x *HandshakeSignedRequest) GetRequest() *HandshakeRequest
func (*HandshakeSignedRequest) GetSignature ¶
func (x *HandshakeSignedRequest) GetSignature() []byte
func (*HandshakeSignedRequest) ProtoMessage ¶
func (*HandshakeSignedRequest) ProtoMessage()
func (*HandshakeSignedRequest) ProtoReflect ¶
func (x *HandshakeSignedRequest) ProtoReflect() protoreflect.Message
func (*HandshakeSignedRequest) Reset ¶
func (x *HandshakeSignedRequest) Reset()
func (*HandshakeSignedRequest) String ¶
func (x *HandshakeSignedRequest) String() string
type HandshakeSignedResponse ¶
type HandshakeSignedResponse struct { Content []*HandshakeContent `protobuf:"bytes,1,rep,name=content,proto3" json:"content,omitempty"` CborPayload []byte `protobuf:"bytes,2,opt,name=cbor_payload,json=cborPayload,proto3" json:"cbor_payload,omitempty"` // rfc8949 Consise Binary Object Representation of HandshakeContent Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"` // contains filtered or unexported fields }
func (*HandshakeSignedResponse) Descriptor
deprecated
func (*HandshakeSignedResponse) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeSignedResponse.ProtoReflect.Descriptor instead.
func (*HandshakeSignedResponse) GetCborPayload ¶
func (x *HandshakeSignedResponse) GetCborPayload() []byte
func (*HandshakeSignedResponse) GetContent ¶
func (x *HandshakeSignedResponse) GetContent() []*HandshakeContent
func (*HandshakeSignedResponse) GetSignature ¶
func (x *HandshakeSignedResponse) GetSignature() []byte
func (*HandshakeSignedResponse) ProtoMessage ¶
func (*HandshakeSignedResponse) ProtoMessage()
func (*HandshakeSignedResponse) ProtoReflect ¶
func (x *HandshakeSignedResponse) ProtoReflect() protoreflect.Message
func (*HandshakeSignedResponse) Reset ¶
func (x *HandshakeSignedResponse) Reset()
func (*HandshakeSignedResponse) String ¶
func (x *HandshakeSignedResponse) String() string
type HandshakeSignupRules ¶
type HandshakeSignupRules struct { FrequencyMinutes int32 `protobuf:"varint,1,opt,name=frequency_minutes,json=frequencyMinutes,proto3" json:"frequency_minutes,omitempty"` // maximum messaging frequency // contains filtered or unexported fields }
func (*HandshakeSignupRules) Descriptor
deprecated
func (*HandshakeSignupRules) Descriptor() ([]byte, []int)
Deprecated: Use HandshakeSignupRules.ProtoReflect.Descriptor instead.
func (*HandshakeSignupRules) GetFrequencyMinutes ¶
func (x *HandshakeSignupRules) GetFrequencyMinutes() int32
func (*HandshakeSignupRules) ProtoMessage ¶
func (*HandshakeSignupRules) ProtoMessage()
func (*HandshakeSignupRules) ProtoReflect ¶
func (x *HandshakeSignupRules) ProtoReflect() protoreflect.Message
func (*HandshakeSignupRules) Reset ¶
func (x *HandshakeSignupRules) Reset()
func (*HandshakeSignupRules) String ¶
func (x *HandshakeSignupRules) String() string
type HandshakeSignupSubType ¶
type HandshakeSignupSubType int32
const ( HandshakeSignupSubType_TRANSACTIONAL HandshakeSignupSubType = 0 HandshakeSignupSubType_PRODUCT HandshakeSignupSubType = 1 HandshakeSignupSubType_SECURITY HandshakeSignupSubType = 2 HandshakeSignupSubType_PROMOTION HandshakeSignupSubType = 3 HandshakeSignupSubType_NEWSLETTER HandshakeSignupSubType = 4 HandshakeSignupSubType_REQUEST HandshakeSignupSubType = 5 HandshakeSignupSubType_OTHER HandshakeSignupSubType = 6 )
func (HandshakeSignupSubType) Descriptor ¶
func (HandshakeSignupSubType) Descriptor() protoreflect.EnumDescriptor
func (HandshakeSignupSubType) Enum ¶
func (x HandshakeSignupSubType) Enum() *HandshakeSignupSubType
func (HandshakeSignupSubType) EnumDescriptor
deprecated
func (HandshakeSignupSubType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HandshakeSignupSubType.Descriptor instead.
func (HandshakeSignupSubType) Number ¶
func (x HandshakeSignupSubType) Number() protoreflect.EnumNumber
func (HandshakeSignupSubType) String ¶
func (x HandshakeSignupSubType) String() string
func (HandshakeSignupSubType) Type ¶
func (HandshakeSignupSubType) Type() protoreflect.EnumType
type HandshakeStatus ¶
type HandshakeStatus int32
const ( HandshakeStatus_ACCEPTED HandshakeStatus = 0 HandshakeStatus_REVOKED HandshakeStatus = 1 HandshakeStatus_PENDING HandshakeStatus = 2 )
func (HandshakeStatus) Descriptor ¶
func (HandshakeStatus) Descriptor() protoreflect.EnumDescriptor
func (HandshakeStatus) Enum ¶
func (x HandshakeStatus) Enum() *HandshakeStatus
func (HandshakeStatus) EnumDescriptor
deprecated
func (HandshakeStatus) EnumDescriptor() ([]byte, []int)
Deprecated: Use HandshakeStatus.Descriptor instead.
func (HandshakeStatus) Number ¶
func (x HandshakeStatus) Number() protoreflect.EnumNumber
func (HandshakeStatus) String ¶
func (x HandshakeStatus) String() string
func (HandshakeStatus) Type ¶
func (HandshakeStatus) Type() protoreflect.EnumType
type HandshakeType ¶
type HandshakeType int32
const ( HandshakeType_PERSONAL HandshakeType = 0 HandshakeType_SIGNUP HandshakeType = 1 HandshakeType_SERVER_SPECIFIC HandshakeType = 2 HandshakeType_USER_SPECIFIC HandshakeType = 3 )
func (HandshakeType) Descriptor ¶
func (HandshakeType) Descriptor() protoreflect.EnumDescriptor
func (HandshakeType) Enum ¶
func (x HandshakeType) Enum() *HandshakeType
func (HandshakeType) EnumDescriptor
deprecated
func (HandshakeType) EnumDescriptor() ([]byte, []int)
Deprecated: Use HandshakeType.Descriptor instead.
func (HandshakeType) Number ¶
func (x HandshakeType) Number() protoreflect.EnumNumber
func (HandshakeType) String ¶
func (x HandshakeType) String() string
func (HandshakeType) Type ¶
func (HandshakeType) Type() protoreflect.EnumType
type MinimumHandshakeLevel ¶
type MinimumHandshakeLevel int32
const ( MinimumHandshakeLevel_NONE MinimumHandshakeLevel = 0 // no level required MinimumHandshakeLevel_RECAPTCHAV3 MinimumHandshakeLevel = 1 // user interaction - reverse turing test complete MinimumHandshakeLevel_POH MinimumHandshakeLevel = 2 // proof of humanity (version 2.0 of Mailio most likely) MinimumHandshakeLevel_FACE_TO_FACE MinimumHandshakeLevel = 3 // face to face meet for key exchange )
func (MinimumHandshakeLevel) Descriptor ¶
func (MinimumHandshakeLevel) Descriptor() protoreflect.EnumDescriptor
func (MinimumHandshakeLevel) Enum ¶
func (x MinimumHandshakeLevel) Enum() *MinimumHandshakeLevel
func (MinimumHandshakeLevel) EnumDescriptor
deprecated
func (MinimumHandshakeLevel) EnumDescriptor() ([]byte, []int)
Deprecated: Use MinimumHandshakeLevel.Descriptor instead.
func (MinimumHandshakeLevel) Number ¶
func (x MinimumHandshakeLevel) Number() protoreflect.EnumNumber
func (MinimumHandshakeLevel) String ¶
func (x MinimumHandshakeLevel) String() string
func (MinimumHandshakeLevel) Type ¶
func (MinimumHandshakeLevel) Type() protoreflect.EnumType
type PongRequest ¶
type PongRequest struct {
// contains filtered or unexported fields
}
func (*PongRequest) Descriptor
deprecated
func (*PongRequest) Descriptor() ([]byte, []int)
Deprecated: Use PongRequest.ProtoReflect.Descriptor instead.
func (*PongRequest) ProtoMessage ¶
func (*PongRequest) ProtoMessage()
func (*PongRequest) ProtoReflect ¶
func (x *PongRequest) ProtoReflect() protoreflect.Message
func (*PongRequest) Reset ¶
func (x *PongRequest) Reset()
func (*PongRequest) String ¶
func (x *PongRequest) String() string
type PongResponse ¶
type PongResponse struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*PongResponse) Descriptor
deprecated
func (*PongResponse) Descriptor() ([]byte, []int)
Deprecated: Use PongResponse.ProtoReflect.Descriptor instead.
func (*PongResponse) GetMessage ¶
func (x *PongResponse) GetMessage() string
func (*PongResponse) ProtoMessage ¶
func (*PongResponse) ProtoMessage()
func (*PongResponse) ProtoReflect ¶
func (x *PongResponse) ProtoReflect() protoreflect.Message
func (*PongResponse) Reset ¶
func (x *PongResponse) Reset()
func (*PongResponse) String ¶
func (x *PongResponse) String() string
type PongServiceClient ¶
type PongServiceClient interface { // Ping returns a pong response with the servers current time including timezone ISO (https://www.rfc-editor.org/rfc/rfc3339). Ping(ctx context.Context, in *PongRequest, opts ...grpc.CallOption) (*PongResponse, error) }
PongServiceClient is the client API for PongService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewPongServiceClient ¶
func NewPongServiceClient(cc grpc.ClientConnInterface) PongServiceClient
type PongServiceServer ¶
type PongServiceServer interface { // Ping returns a pong response with the servers current time including timezone ISO (https://www.rfc-editor.org/rfc/rfc3339). Ping(context.Context, *PongRequest) (*PongResponse, error) // contains filtered or unexported methods }
PongServiceServer is the server API for PongService service. All implementations must embed UnimplementedPongServiceServer for forward compatibility
type SigScheme ¶
type SigScheme int32
const ( // signature scheme used SigScheme_EdDSA_X25519 SigScheme = 0 )
func (SigScheme) Descriptor ¶
func (SigScheme) Descriptor() protoreflect.EnumDescriptor
func (SigScheme) EnumDescriptor
deprecated
func (SigScheme) Number ¶
func (x SigScheme) Number() protoreflect.EnumNumber
func (SigScheme) Type ¶
func (SigScheme) Type() protoreflect.EnumType
type UnimplementedHandshakeServiceServer ¶
type UnimplementedHandshakeServiceServer struct { }
UnimplementedHandshakeServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedHandshakeServiceServer) Handshake ¶
func (UnimplementedHandshakeServiceServer) Handshake(context.Context, *HandshakeSignedRequest) (*HandshakeSignedResponse, error)
type UnimplementedPongServiceServer ¶
type UnimplementedPongServiceServer struct { }
UnimplementedPongServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedPongServiceServer) Ping ¶
func (UnimplementedPongServiceServer) Ping(context.Context, *PongRequest) (*PongResponse, error)
type UnsafeHandshakeServiceServer ¶
type UnsafeHandshakeServiceServer interface {
// contains filtered or unexported methods
}
UnsafeHandshakeServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to HandshakeServiceServer will result in compilation errors.
type UnsafePongServiceServer ¶
type UnsafePongServiceServer interface {
// contains filtered or unexported methods
}
UnsafePongServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to PongServiceServer will result in compilation errors.