rpc

package
v0.0.0-...-9d76aac Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

func WithIdentityService(server *grpc.Server)

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.

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

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.

Jump to

Keyboard shortcuts

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