@ -1,6 +1,6 @@
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
// versions:
// versions:
// - protoc-gen-go-grpc v1. 2 .0
// - protoc-gen-go-grpc v1. 3 .0
// - protoc (unknown)
// - protoc (unknown)
// source: v1/auth.proto
// source: v1/auth.proto
@ -18,6 +18,12 @@ import (
// Requires gRPC-Go v1.32.0 or later.
// Requires gRPC-Go v1.32.0 or later.
const _ = grpc . SupportPackageIsVersion7
const _ = grpc . SupportPackageIsVersion7
const (
Authenticate_PreLogin_FullMethodName = "/auth.Authenticate/preLogin"
Authenticate_Login_FullMethodName = "/auth.Authenticate/login"
Authenticate_Logout_FullMethodName = "/auth.Authenticate/logout"
)
// AuthenticateClient is the client API for Authenticate service.
// AuthenticateClient is the client API for Authenticate 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.
// 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.
@ -37,7 +43,7 @@ func NewAuthenticateClient(cc grpc.ClientConnInterface) AuthenticateClient {
func ( c * authenticateClient ) PreLogin ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * ActionReply , error ) {
func ( c * authenticateClient ) PreLogin ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * ActionReply , error ) {
out := new ( ActionReply )
out := new ( ActionReply )
err := c . cc . Invoke ( ctx , "/auth.Authenticate/preLogin" , in , out , opts ... )
err := c . cc . Invoke ( ctx , Authenticate_PreLogin_FullMethodName , in , out , opts ... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -46,7 +52,7 @@ func (c *authenticateClient) PreLogin(ctx context.Context, in *User, opts ...grp
func ( c * authenticateClient ) Login ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * LoginReply , error ) {
func ( c * authenticateClient ) Login ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * LoginReply , error ) {
out := new ( LoginReply )
out := new ( LoginReply )
err := c . cc . Invoke ( ctx , "/auth.Authenticate/login" , in , out , opts ... )
err := c . cc . Invoke ( ctx , Authenticate_Login_FullMethodName , in , out , opts ... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -55,7 +61,7 @@ func (c *authenticateClient) Login(ctx context.Context, in *User, opts ...grpc.C
func ( c * authenticateClient ) Logout ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * ActionReply , error ) {
func ( c * authenticateClient ) Logout ( ctx context . Context , in * User , opts ... grpc . CallOption ) ( * ActionReply , error ) {
out := new ( ActionReply )
out := new ( ActionReply )
err := c . cc . Invoke ( ctx , "/auth.Authenticate/logout" , in , out , opts ... )
err := c . cc . Invoke ( ctx , Authenticate_Logout_FullMethodName , in , out , opts ... )
if err != nil {
if err != nil {
return nil , err
return nil , err
}
}
@ -108,7 +114,7 @@ func _Authenticate_PreLogin_Handler(srv interface{}, ctx context.Context, dec fu
}
}
info := & grpc . UnaryServerInfo {
info := & grpc . UnaryServerInfo {
Server : srv ,
Server : srv ,
FullMethod : "/auth.Authenticate/preLogin" ,
FullMethod : Authenticate_PreLogin_FullMethodName ,
}
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AuthenticateServer ) . PreLogin ( ctx , req . ( * User ) )
return srv . ( AuthenticateServer ) . PreLogin ( ctx , req . ( * User ) )
@ -126,7 +132,7 @@ func _Authenticate_Login_Handler(srv interface{}, ctx context.Context, dec func(
}
}
info := & grpc . UnaryServerInfo {
info := & grpc . UnaryServerInfo {
Server : srv ,
Server : srv ,
FullMethod : "/auth.Authenticate/login" ,
FullMethod : Authenticate_Login_FullMethodName ,
}
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AuthenticateServer ) . Login ( ctx , req . ( * User ) )
return srv . ( AuthenticateServer ) . Login ( ctx , req . ( * User ) )
@ -144,7 +150,7 @@ func _Authenticate_Logout_Handler(srv interface{}, ctx context.Context, dec func
}
}
info := & grpc . UnaryServerInfo {
info := & grpc . UnaryServerInfo {
Server : srv ,
Server : srv ,
FullMethod : "/auth.Authenticate/logout" ,
FullMethod : Authenticate_Logout_FullMethodName ,
}
}
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
handler := func ( ctx context . Context , req interface { } ) ( interface { } , error ) {
return srv . ( AuthenticateServer ) . Logout ( ctx , req . ( * User ) )
return srv . ( AuthenticateServer ) . Logout ( ctx , req . ( * User ) )