Documentation ¶
Index ¶
- Variables
- func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
- type APIClient
- type APIServer
- type GetAttestationRequest
- func (*GetAttestationRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttestationRequest) GetNonce() []byte
- func (*GetAttestationRequest) ProtoMessage()
- func (x *GetAttestationRequest) ProtoReflect() protoreflect.Message
- func (x *GetAttestationRequest) Reset()
- func (x *GetAttestationRequest) String() string
- type GetAttestationResponse
- func (*GetAttestationResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetAttestationResponse) GetAttestation() []byte
- func (*GetAttestationResponse) ProtoMessage()
- func (x *GetAttestationResponse) ProtoReflect() protoreflect.Message
- func (x *GetAttestationResponse) Reset()
- func (x *GetAttestationResponse) String() string
- type UnimplementedAPIServer
- type UnsafeAPIServer
Constants ¶
This section is empty.
Variables ¶
var API_ServiceDesc = grpc.ServiceDesc{ ServiceName: "verify.API", HandlerType: (*APIServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetAttestation", Handler: _API_GetAttestation_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "verify.proto", }
API_ServiceDesc is the grpc.ServiceDesc for API service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_verify_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAPIServer ¶
func RegisterAPIServer(s grpc.ServiceRegistrar, srv APIServer)
Types ¶
type APIClient ¶
type APIClient interface { // GetAttestation returns an attestation for the given user data and nonce. GetAttestation(ctx context.Context, in *GetAttestationRequest, opts ...grpc.CallOption) (*GetAttestationResponse, error) }
APIClient is the client API for API 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 NewAPIClient ¶
func NewAPIClient(cc grpc.ClientConnInterface) APIClient
type APIServer ¶
type APIServer interface { // GetAttestation returns an attestation for the given user data and nonce. GetAttestation(context.Context, *GetAttestationRequest) (*GetAttestationResponse, error) // contains filtered or unexported methods }
APIServer is the server API for API service. All implementations must embed UnimplementedAPIServer for forward compatibility
type GetAttestationRequest ¶
type GetAttestationRequest struct { // bytes user_data = 1; removed // nonce is a random nonce to prevent replay attacks. Nonce []byte `protobuf:"bytes,2,opt,name=nonce,proto3" json:"nonce,omitempty"` // contains filtered or unexported fields }
func (*GetAttestationRequest) Descriptor
deprecated
func (*GetAttestationRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetAttestationRequest.ProtoReflect.Descriptor instead.
func (*GetAttestationRequest) GetNonce ¶
func (x *GetAttestationRequest) GetNonce() []byte
func (*GetAttestationRequest) ProtoMessage ¶
func (*GetAttestationRequest) ProtoMessage()
func (*GetAttestationRequest) ProtoReflect ¶
func (x *GetAttestationRequest) ProtoReflect() protoreflect.Message
func (*GetAttestationRequest) Reset ¶
func (x *GetAttestationRequest) Reset()
func (*GetAttestationRequest) String ¶
func (x *GetAttestationRequest) String() string
type GetAttestationResponse ¶
type GetAttestationResponse struct { // attestation is the attestation for the given user data and nonce. Attestation []byte `protobuf:"bytes,1,opt,name=attestation,proto3" json:"attestation,omitempty"` // contains filtered or unexported fields }
func (*GetAttestationResponse) Descriptor
deprecated
func (*GetAttestationResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetAttestationResponse.ProtoReflect.Descriptor instead.
func (*GetAttestationResponse) GetAttestation ¶
func (x *GetAttestationResponse) GetAttestation() []byte
func (*GetAttestationResponse) ProtoMessage ¶
func (*GetAttestationResponse) ProtoMessage()
func (*GetAttestationResponse) ProtoReflect ¶
func (x *GetAttestationResponse) ProtoReflect() protoreflect.Message
func (*GetAttestationResponse) Reset ¶
func (x *GetAttestationResponse) Reset()
func (*GetAttestationResponse) String ¶
func (x *GetAttestationResponse) String() string
type UnimplementedAPIServer ¶
type UnimplementedAPIServer struct { }
UnimplementedAPIServer must be embedded to have forward compatible implementations.
func (UnimplementedAPIServer) GetAttestation ¶
func (UnimplementedAPIServer) GetAttestation(context.Context, *GetAttestationRequest) (*GetAttestationResponse, error)
type UnsafeAPIServer ¶
type UnsafeAPIServer interface {
// contains filtered or unexported methods
}
UnsafeAPIServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to APIServer will result in compilation errors.