authentication

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Jul 19, 2021 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Authentication_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "users.Authentication",
	HandlerType: (*AuthenticationServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SignIn",
			Handler:    _Authentication_SignIn_Handler,
		},
		{
			MethodName: "SignUp",
			Handler:    _Authentication_SignUp_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "users/authentication/authentication_v1.proto",
}

Authentication_ServiceDesc is the grpc.ServiceDesc for Authentication 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 File_users_authentication_authentication_v1_proto protoreflect.FileDescriptor

Functions

func RegisterAuthenticationServer

func RegisterAuthenticationServer(s grpc.ServiceRegistrar, srv AuthenticationServer)

Types

type AuthenticationClient

type AuthenticationClient interface {
	/// Use to sign in
	SignIn(ctx context.Context, in *accounts.AccountCreds, opts ...grpc.CallOption) (*common.EmptyMessage, error)
	/// Use to sign up
	SignUp(ctx context.Context, in *accounts.AccountCreds, opts ...grpc.CallOption) (*common.EmptyMessage, error)
}

AuthenticationClient is the client API for Authentication 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 AuthenticationServer

type AuthenticationServer interface {
	/// Use to sign in
	SignIn(context.Context, *accounts.AccountCreds) (*common.EmptyMessage, error)
	/// Use to sign up
	SignUp(context.Context, *accounts.AccountCreds) (*common.EmptyMessage, error)
	// contains filtered or unexported methods
}

AuthenticationServer is the server API for Authentication service. All implementations must embed UnimplementedAuthenticationServer for forward compatibility

type UnimplementedAuthenticationServer

type UnimplementedAuthenticationServer struct {
}

UnimplementedAuthenticationServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthenticationServer) SignIn

func (UnimplementedAuthenticationServer) SignUp

type UnsafeAuthenticationServer

type UnsafeAuthenticationServer interface {
	// contains filtered or unexported methods
}

UnsafeAuthenticationServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticationServer will result in compilation errors.

Jump to

Keyboard shortcuts

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