authentication

package
v1.26.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2023 License: MIT Imports: 8 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_auth_authentication_service_proto protoreflect.FileDescriptor
View Source
var Login_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "authentication.Login",
	HandlerType: (*LoginServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "LoginCheck",
			Handler:    _Login_LoginCheck_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth/authentication_service.proto",
}

Login_ServiceDesc is the grpc.ServiceDesc for Login service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterLoginServer

func RegisterLoginServer(s grpc.ServiceRegistrar, srv LoginServer)

Types

type LoginClient

type LoginClient interface {
	LoginCheck(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error)
}

LoginClient is the client API for Login 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 NewLoginClient

func NewLoginClient(cc grpc.ClientConnInterface) LoginClient

type LoginReply

type LoginReply struct {
	Result bool `protobuf:"varint,1,opt,name=result,proto3" json:"result,omitempty"`
	// contains filtered or unexported fields
}

The response message containing the result of login attempt. result value of true indicates success and false indicates failure

func (*LoginReply) Descriptor deprecated

func (*LoginReply) Descriptor() ([]byte, []int)

Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.

func (*LoginReply) GetResult

func (x *LoginReply) GetResult() bool

func (*LoginReply) ProtoMessage

func (*LoginReply) ProtoMessage()

func (*LoginReply) ProtoReflect added in v1.20.4

func (x *LoginReply) ProtoReflect() protoreflect.Message

func (*LoginReply) Reset

func (x *LoginReply) Reset()

func (*LoginReply) String

func (x *LoginReply) String() string

type LoginRequest

type LoginRequest struct {
	UserName string `protobuf:"bytes,1,opt,name=user_name,json=userName,proto3" json:"user_name,omitempty"`
	Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"`
	ClientId string `protobuf:"bytes,3,opt,name=client_id,json=clientId,proto3" json:"client_id,omitempty"`
	// contains filtered or unexported fields
}

The request message containing the user's name, password and client id

func (*LoginRequest) Descriptor deprecated

func (*LoginRequest) Descriptor() ([]byte, []int)

Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.

func (*LoginRequest) GetClientId

func (x *LoginRequest) GetClientId() string

func (*LoginRequest) GetPassword

func (x *LoginRequest) GetPassword() string

func (*LoginRequest) GetUserName

func (x *LoginRequest) GetUserName() string

func (*LoginRequest) ProtoMessage

func (*LoginRequest) ProtoMessage()

func (*LoginRequest) ProtoReflect added in v1.20.4

func (x *LoginRequest) ProtoReflect() protoreflect.Message

func (*LoginRequest) Reset

func (x *LoginRequest) Reset()

func (*LoginRequest) String

func (x *LoginRequest) String() string

type LoginServer

type LoginServer interface {
	LoginCheck(context.Context, *LoginRequest) (*LoginReply, error)
	// contains filtered or unexported methods
}

LoginServer is the server API for Login service. All implementations must embed UnimplementedLoginServer for forward compatibility

type UnimplementedLoginServer added in v1.20.4

type UnimplementedLoginServer struct {
}

UnimplementedLoginServer must be embedded to have forward compatible implementations.

func (UnimplementedLoginServer) LoginCheck added in v1.20.4

type UnsafeLoginServer added in v1.20.4

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

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

Jump to

Keyboard shortcuts

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