Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
var IdentityService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chainmetric.identity.service.IdentityService", HandlerType: (*IdentityServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "register", Handler: _IdentityService_Register_Handler, }, { MethodName: "enroll", Handler: _IdentityService_Enroll_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "identity.proto", }
IdentityService_ServiceDesc is the grpc.ServiceDesc for IdentityService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
Functions ¶
func RegisterIdentityServiceServer ¶
func RegisterIdentityServiceServer(s grpc.ServiceRegistrar, srv IdentityServiceServer)
func WithIdentityService ¶
Types ¶
type IdentityServiceClient ¶
type IdentityServiceClient interface { Register(ctx context.Context, in *presenter.RegistrationRequest, opts ...grpc.CallOption) (*presenter.User, error) Enroll(ctx context.Context, in *presenter.EnrollmentRequest, opts ...grpc.CallOption) (*emptypb.Empty, error) }
IdentityServiceClient is the client API for IdentityService 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 NewIdentityServiceClient ¶
func NewIdentityServiceClient(cc grpc.ClientConnInterface) IdentityServiceClient
type IdentityServiceServer ¶
type IdentityServiceServer interface { Register(context.Context, *presenter.RegistrationRequest) (*presenter.User, error) Enroll(context.Context, *presenter.EnrollmentRequest) (*emptypb.Empty, error) // contains filtered or unexported methods }
IdentityServiceServer is the server API for IdentityService service. All implementations must embed UnimplementedIdentityServiceServer for forward compatibility
type UnimplementedIdentityServiceServer ¶
type UnimplementedIdentityServiceServer struct { }
UnimplementedIdentityServiceServer must be embedded to have forward compatible implementations.
func (UnimplementedIdentityServiceServer) Enroll ¶
func (UnimplementedIdentityServiceServer) Enroll(context.Context, *presenter.EnrollmentRequest) (*emptypb.Empty, error)
func (UnimplementedIdentityServiceServer) Register ¶
func (UnimplementedIdentityServiceServer) Register(context.Context, *presenter.RegistrationRequest) (*presenter.User, error)
type UnsafeIdentityServiceServer ¶
type UnsafeIdentityServiceServer interface {
// contains filtered or unexported methods
}
UnsafeIdentityServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to IdentityServiceServer will result in compilation errors.