Documentation ¶
Index ¶
- Variables
- func RegisterAuthenticatorServer(s *grpc.Server, srv AuthenticatorServer)
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetPassword() string
- func (x *AuthenticateRequest) GetUsername() string
- func (*AuthenticateRequest) ProtoMessage()
- func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
- func (x *AuthenticateRequest) Reset()
- func (x *AuthenticateRequest) String() string
- type AuthenticateResponse
- func (*AuthenticateResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateResponse) GetAuthenticated() bool
- func (*AuthenticateResponse) ProtoMessage()
- func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
- func (x *AuthenticateResponse) Reset()
- func (x *AuthenticateResponse) String() string
- type AuthenticatorClient
- type AuthenticatorServer
- type UnimplementedAuthenticatorServer
Constants ¶
This section is empty.
Variables ¶
View Source
var File_jackal_proto_authenticator_v1_authenticator_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticatorServer ¶
func RegisterAuthenticatorServer(s *grpc.Server, srv AuthenticatorServer)
Types ¶
type AuthenticateRequest ¶
type AuthenticateRequest struct { // username is the name of the user who's trying to authenticates. Username string `protobuf:"bytes,1,opt,name=username,proto3" json:"username,omitempty"` // password is the user input password. Password string `protobuf:"bytes,2,opt,name=password,proto3" json:"password,omitempty"` // contains filtered or unexported fields }
AuthenticateRequest is the parameter message for Authenticate rpc.
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetPassword ¶
func (x *AuthenticateRequest) GetPassword() string
func (*AuthenticateRequest) GetUsername ¶
func (x *AuthenticateRequest) GetUsername() string
func (*AuthenticateRequest) ProtoMessage ¶
func (*AuthenticateRequest) ProtoMessage()
func (*AuthenticateRequest) ProtoReflect ¶
func (x *AuthenticateRequest) ProtoReflect() protoreflect.Message
func (*AuthenticateRequest) Reset ¶
func (x *AuthenticateRequest) Reset()
func (*AuthenticateRequest) String ¶
func (x *AuthenticateRequest) String() string
type AuthenticateResponse ¶
type AuthenticateResponse struct { // authenticated tells whether or not Authenticate operation was successful. Authenticated bool `protobuf:"varint,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"` // contains filtered or unexported fields }
AuthenticateResponse is the response returned by Authenticate rpc.
func (*AuthenticateResponse) Descriptor
deprecated
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateResponse.ProtoReflect.Descriptor instead.
func (*AuthenticateResponse) GetAuthenticated ¶
func (x *AuthenticateResponse) GetAuthenticated() bool
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) ProtoReflect ¶
func (x *AuthenticateResponse) ProtoReflect() protoreflect.Message
func (*AuthenticateResponse) Reset ¶
func (x *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (x *AuthenticateResponse) String() string
type AuthenticatorClient ¶
type AuthenticatorClient interface { // Authenticate method performs authentication given a username and password. Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error) }
AuthenticatorClient is the client API for Authenticator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
func NewAuthenticatorClient ¶
func NewAuthenticatorClient(cc *grpc.ClientConn) AuthenticatorClient
type AuthenticatorServer ¶
type AuthenticatorServer interface { // Authenticate method performs authentication given a username and password. Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error) }
AuthenticatorServer is the server API for Authenticator service.
type UnimplementedAuthenticatorServer ¶
type UnimplementedAuthenticatorServer struct { }
UnimplementedAuthenticatorServer can be embedded to have forward compatible implementations.
func (*UnimplementedAuthenticatorServer) Authenticate ¶
func (*UnimplementedAuthenticatorServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateResponse, error)
Click to show internal directories.
Click to hide internal directories.