Documentation
¶
Index ¶
- Variables
- func RegisterAuthenticatorServer(s grpc.ServiceRegistrar, srv AuthenticatorServer)
- type AuthenticatorClient
- type AuthenticatorServer
- type Empty
- type LoginReply
- type LoginRequest
- func (*LoginRequest) Descriptor() ([]byte, []int)deprecated
- func (x *LoginRequest) GetPassword() string
- func (x *LoginRequest) GetUsername() string
- func (*LoginRequest) ProtoMessage()
- func (x *LoginRequest) ProtoReflect() protoreflect.Message
- func (x *LoginRequest) Reset()
- func (x *LoginRequest) String() string
- type LogoutReply
- type SecureReply
- type UnimplementedAuthenticatorServer
- type UnsafeAuthenticatorServer
Constants ¶
This section is empty.
Variables ¶
var File_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticatorServer ¶
func RegisterAuthenticatorServer(s grpc.ServiceRegistrar, srv AuthenticatorServer)
Types ¶
type AuthenticatorClient ¶
type AuthenticatorClient interface { Login(ctx context.Context, in *LoginRequest, opts ...grpc.CallOption) (*LoginReply, error) Logout(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*LogoutReply, error) Secure(ctx context.Context, in *Empty, opts ...grpc.CallOption) (*SecureReply, error) }
AuthenticatorClient is the client API for Authenticator 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 NewAuthenticatorClient ¶
func NewAuthenticatorClient(cc grpc.ClientConnInterface) AuthenticatorClient
type AuthenticatorServer ¶
type AuthenticatorServer interface { Login(context.Context, *LoginRequest) (*LoginReply, error) Logout(context.Context, *Empty) (*LogoutReply, error) Secure(context.Context, *Empty) (*SecureReply, error) // contains filtered or unexported methods }
AuthenticatorServer is the server API for Authenticator service. All implementations must embed UnimplementedAuthenticatorServer for forward compatibility
type Empty ¶
type Empty struct {
// contains filtered or unexported fields
}
func (*Empty) Descriptor
deprecated
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) ProtoReflect ¶
func (x *Empty) ProtoReflect() protoreflect.Message
type LoginReply ¶
type LoginReply struct { Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"` // contains filtered or unexported fields }
func (*LoginReply) Descriptor
deprecated
func (*LoginReply) Descriptor() ([]byte, []int)
Deprecated: Use LoginReply.ProtoReflect.Descriptor instead.
func (*LoginReply) GetToken ¶
func (x *LoginReply) GetToken() string
func (*LoginReply) ProtoMessage ¶
func (*LoginReply) ProtoMessage()
func (*LoginReply) ProtoReflect ¶
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=username,proto3" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
func (*LoginRequest) Descriptor
deprecated
func (*LoginRequest) Descriptor() ([]byte, []int)
Deprecated: Use LoginRequest.ProtoReflect.Descriptor instead.
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 ¶
func (x *LoginRequest) ProtoReflect() protoreflect.Message
func (*LoginRequest) Reset ¶
func (x *LoginRequest) Reset()
func (*LoginRequest) String ¶
func (x *LoginRequest) String() string
type LogoutReply ¶
type LogoutReply struct { Success bool `protobuf:"varint,1,opt,name=success,proto3" json:"success,omitempty"` // contains filtered or unexported fields }
func (*LogoutReply) Descriptor
deprecated
func (*LogoutReply) Descriptor() ([]byte, []int)
Deprecated: Use LogoutReply.ProtoReflect.Descriptor instead.
func (*LogoutReply) GetSuccess ¶
func (x *LogoutReply) GetSuccess() bool
func (*LogoutReply) ProtoMessage ¶
func (*LogoutReply) ProtoMessage()
func (*LogoutReply) ProtoReflect ¶
func (x *LogoutReply) ProtoReflect() protoreflect.Message
func (*LogoutReply) Reset ¶
func (x *LogoutReply) Reset()
func (*LogoutReply) String ¶
func (x *LogoutReply) String() string
type SecureReply ¶
type SecureReply struct { Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"` // contains filtered or unexported fields }
func (*SecureReply) Descriptor
deprecated
func (*SecureReply) Descriptor() ([]byte, []int)
Deprecated: Use SecureReply.ProtoReflect.Descriptor instead.
func (*SecureReply) GetMessage ¶
func (x *SecureReply) GetMessage() string
func (*SecureReply) ProtoMessage ¶
func (*SecureReply) ProtoMessage()
func (*SecureReply) ProtoReflect ¶
func (x *SecureReply) ProtoReflect() protoreflect.Message
func (*SecureReply) Reset ¶
func (x *SecureReply) Reset()
func (*SecureReply) String ¶
func (x *SecureReply) String() string
type UnimplementedAuthenticatorServer ¶
type UnimplementedAuthenticatorServer struct { }
UnimplementedAuthenticatorServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticatorServer) Login ¶
func (UnimplementedAuthenticatorServer) Login(context.Context, *LoginRequest) (*LoginReply, error)
func (UnimplementedAuthenticatorServer) Logout ¶
func (UnimplementedAuthenticatorServer) Logout(context.Context, *Empty) (*LogoutReply, error)
func (UnimplementedAuthenticatorServer) Secure ¶
func (UnimplementedAuthenticatorServer) Secure(context.Context, *Empty) (*SecureReply, error)
type UnsafeAuthenticatorServer ¶
type UnsafeAuthenticatorServer interface {
// contains filtered or unexported methods
}
UnsafeAuthenticatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AuthenticatorServer will result in compilation errors.