v1

package
v0.2.9 Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	HandshakeService_Handshake_FullMethodName = "/handshake.HandshakeService/Handshake"
)

Variables

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
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.

View Source
var (
	SigScheme_name = map[int32]string{
		0: "EdDSA_X25519",
	}
	SigScheme_value = map[string]int32{
		"EdDSA_X25519": 0,
	}
)

Enum value maps for SigScheme.

View Source
var File_handshake_proto protoreflect.FileDescriptor
View Source
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)

View Source
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) Enum added in v0.2.3

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 (EmailLookupScryptScheme) String added in v0.2.3

func (x EmailLookupScryptScheme) String() string

func (EmailLookupScryptScheme) Type added in v0.2.3

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 (*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.

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

func (HandshakeSignupSubType) EnumDescriptor deprecated

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

Deprecated: Use HandshakeSignupSubType.Descriptor instead.

func (HandshakeSignupSubType) Number

func (HandshakeSignupSubType) String

func (x HandshakeSignupSubType) String() string

func (HandshakeSignupSubType) Type

type HandshakeStatus

type HandshakeStatus int32
const (
	HandshakeStatus_ACCEPTED HandshakeStatus = 0
	HandshakeStatus_REVOKED  HandshakeStatus = 1
	HandshakeStatus_PENDING  HandshakeStatus = 2
)

func (HandshakeStatus) Descriptor

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 (HandshakeStatus) String

func (x HandshakeStatus) String() string

func (HandshakeStatus) Type

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

func (x HandshakeType) Enum() *HandshakeType

func (HandshakeType) EnumDescriptor deprecated

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

Deprecated: Use HandshakeType.Descriptor instead.

func (HandshakeType) Number

func (HandshakeType) String

func (x HandshakeType) String() string

func (HandshakeType) Type

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

func (MinimumHandshakeLevel) EnumDescriptor deprecated

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

Deprecated: Use MinimumHandshakeLevel.Descriptor instead.

func (MinimumHandshakeLevel) Number

func (MinimumHandshakeLevel) String

func (x MinimumHandshakeLevel) String() string

func (MinimumHandshakeLevel) Type

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.

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

func (x SigScheme) Enum() *SigScheme

func (SigScheme) EnumDescriptor deprecated

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

Deprecated: Use SigScheme.Descriptor instead.

func (SigScheme) Number

func (x SigScheme) Number() protoreflect.EnumNumber

func (SigScheme) String

func (x SigScheme) String() string

func (SigScheme) Type

type UnimplementedHandshakeServiceServer

type UnimplementedHandshakeServiceServer struct {
}

UnimplementedHandshakeServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedHandshakeServiceServer) Handshake

type UnimplementedPongServiceServer

type UnimplementedPongServiceServer struct {
}

UnimplementedPongServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedPongServiceServer) Ping

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.

Jump to

Keyboard shortcuts

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