Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
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)
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.
func NewAuthenticationClient ¶
func NewAuthenticationClient(cc grpc.ClientConnInterface) AuthenticationClient
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) SignIn(context.Context, *accounts.AccountCreds) (*common.EmptyMessage, error)
func (UnimplementedAuthenticationServer) SignUp ¶
func (UnimplementedAuthenticationServer) SignUp(context.Context, *accounts.AccountCreds) (*common.EmptyMessage, error)
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.