2026-08-09 10:43:45 +08:00
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
2026-08-09 15:10:19 +08:00
// - protoc-gen-go-grpc v1.6.2
2026-08-09 18:40:36 +08:00
// - protoc v7.35.1
2026-08-09 15:10:19 +08:00
// source: module/base/passport/proto/verify.proto
2026-08-09 10:43:45 +08:00
package passport
import (
2026-08-09 15:10:19 +08:00
protobuf "bsm/full/protobuf"
2026-08-09 10:43:45 +08:00
context "context"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
)
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
// Requires gRPC-Go v1.64.0 or later.
const _ = grpc . SupportPackageIsVersion9
const (
Verify_Request_FullMethodName = "/passport.Verify/Request"
Verify_JumioCallback_FullMethodName = "/passport.Verify/JumioCallback"
)
// VerifyClient is the client API for Verify 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.
//
// Passport(会员通行证)-验证
type VerifyClient interface {
// 认证请求
2026-08-09 15:10:19 +08:00
Request ( ctx context . Context , in * VerifyRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// KYC 认证回调
2026-08-09 15:10:19 +08:00
JumioCallback ( ctx context . Context , in * JumioCallbackPayload , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
}
type verifyClient struct {
cc grpc . ClientConnInterface
}
func NewVerifyClient ( cc grpc . ClientConnInterface ) VerifyClient {
return & verifyClient { cc }
}
2026-08-09 15:10:19 +08:00
func ( c * verifyClient ) Request ( ctx context . Context , in * VerifyRequest , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Verify_Request_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
2026-08-09 15:10:19 +08:00
func ( c * verifyClient ) JumioCallback ( ctx context . Context , in * JumioCallbackPayload , opts ... grpc . CallOption ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
cOpts := append ( [ ] grpc . CallOption { grpc . StaticMethod ( ) } , opts ... )
2026-08-09 15:10:19 +08:00
out := new ( protobuf . StatusReply )
2026-08-09 10:43:45 +08:00
err := c . cc . Invoke ( ctx , Verify_JumioCallback_FullMethodName , in , out , cOpts ... )
if err != nil {
return nil , err
}
return out , nil
}
// VerifyServer is the server API for Verify service.
2026-08-09 15:10:19 +08:00
// All implementations should embed UnimplementedVerifyServer
2026-08-09 10:43:45 +08:00
// for forward compatibility.
//
// Passport(会员通行证)-验证
type VerifyServer interface {
// 认证请求
2026-08-09 15:10:19 +08:00
Request ( context . Context , * VerifyRequest ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
// KYC 认证回调
2026-08-09 15:10:19 +08:00
JumioCallback ( context . Context , * JumioCallbackPayload ) ( * protobuf . StatusReply , error )
2026-08-09 10:43:45 +08:00
}
2026-08-09 15:10:19 +08:00
// UnimplementedVerifyServer should be embedded to have
2026-08-09 10:43:45 +08:00
// forward compatible implementations.
//
// NOTE: this should be embedded by value instead of pointer to avoid a nil
// pointer dereference when methods are called.
type UnimplementedVerifyServer struct { }
2026-08-09 15:10:19 +08:00
func ( UnimplementedVerifyServer ) Request ( context . Context , * VerifyRequest ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
return nil , status . Error ( codes . Unimplemented , "method Request not implemented" )
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedVerifyServer ) JumioCallback ( context . Context , * JumioCallbackPayload ) ( * protobuf . StatusReply , error ) {
2026-08-09 10:43:45 +08:00
return nil , status . Error ( codes . Unimplemented , "method JumioCallback not implemented" )
}
2026-08-09 15:10:19 +08:00
func ( UnimplementedVerifyServer ) testEmbeddedByValue ( ) { }
2026-08-09 10:43:45 +08:00
// UnsafeVerifyServer may be embedded to opt out of forward compatibility for this service.
// Use of this interface is not recommended, as added methods to VerifyServer will
// result in compilation errors.
type UnsafeVerifyServer interface {
mustEmbedUnimplementedVerifyServer ( )
}
func RegisterVerifyServer ( s grpc . ServiceRegistrar , srv VerifyServer ) {
// If the following call panics, it indicates UnimplementedVerifyServer was
// embedded by pointer and is nil. This will cause panics if an
// unimplemented method is ever invoked, so we test this at initialization
// time to prevent it from happening at runtime later due to I/O.
if t , ok := srv . ( interface { testEmbeddedByValue ( ) } ) ; ok {
t . testEmbeddedByValue ( )
}
s . RegisterService ( & Verify_ServiceDesc , srv )
}
func _Verify_Request_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( VerifyRequest )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( VerifyServer ) . Request ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Verify_Request_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( VerifyServer ) . Request ( ctx , req . ( * VerifyRequest ) )
}
return interceptor ( ctx , in , info , handler )
}
func _Verify_JumioCallback_Handler ( srv interface { } , ctx context . Context , dec func ( interface { } ) error , interceptor grpc . UnaryServerInterceptor ) ( interface { } , error ) {
in := new ( JumioCallbackPayload )
if err := dec ( in ) ; err != nil {
return nil , err
}
if interceptor == nil {
return srv . ( VerifyServer ) . JumioCallback ( ctx , in )
}
info := & grpc . UnaryServerInfo {
Server : srv ,
FullMethod : Verify_JumioCallback_FullMethodName ,
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( VerifyServer ) . JumioCallback ( ctx , req . ( * JumioCallbackPayload ) )
}
return interceptor ( ctx , in , info , handler )
}
// Verify_ServiceDesc is the grpc.ServiceDesc for Verify service.
// It's only intended for direct use with grpc.RegisterService,
// and not to be introspected or modified (even as a copy)
var Verify_ServiceDesc = grpc . ServiceDesc {
ServiceName : "passport.Verify" ,
HandlerType : ( * VerifyServer ) ( nil ) ,
Methods : [ ] grpc . MethodDesc {
{
MethodName : "Request" ,
Handler : _Verify_Request_Handler ,
} ,
{
MethodName : "JumioCallback" ,
Handler : _Verify_JumioCallback_Handler ,
} ,
} ,
Streams : [ ] grpc . StreamDesc { } ,
2026-08-09 15:10:19 +08:00
Metadata : "module/base/passport/proto/verify.proto" ,
2026-08-09 10:43:45 +08:00
}