Documentation ¶
Overview ¶
Package proto is a generated protocol buffer package.
It is generated from these files:
auth.proto
It has these top-level messages:
CredentialsRequest AuthenticateResponse
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterPasswordAuthenticatorServer ¶
func RegisterPasswordAuthenticatorServer(s *grpc.Server, srv PasswordAuthenticatorServer)
Types ¶
type AuthenticateResponse ¶
type AuthenticateResponse struct { Authenticated bool `protobuf:"varint,1,opt,name=authenticated" json:"authenticated,omitempty"` Status int32 `protobuf:"varint,2,opt,name=status" json:"status,omitempty"` }
func (*AuthenticateResponse) Descriptor ¶
func (*AuthenticateResponse) Descriptor() ([]byte, []int)
func (*AuthenticateResponse) GetAuthenticated ¶
func (m *AuthenticateResponse) GetAuthenticated() bool
func (*AuthenticateResponse) GetStatus ¶
func (m *AuthenticateResponse) GetStatus() int32
func (*AuthenticateResponse) ProtoMessage ¶
func (*AuthenticateResponse) ProtoMessage()
func (*AuthenticateResponse) Reset ¶
func (m *AuthenticateResponse) Reset()
func (*AuthenticateResponse) String ¶
func (m *AuthenticateResponse) String() string
type CredentialsRequest ¶
type CredentialsRequest struct { Username string `protobuf:"bytes,1,opt,name=username" json:"username,omitempty"` Password string `protobuf:"bytes,2,opt,name=password" json:"password,omitempty"` }
func (*CredentialsRequest) Descriptor ¶
func (*CredentialsRequest) Descriptor() ([]byte, []int)
func (*CredentialsRequest) GetPassword ¶
func (m *CredentialsRequest) GetPassword() string
func (*CredentialsRequest) GetUsername ¶
func (m *CredentialsRequest) GetUsername() string
func (*CredentialsRequest) ProtoMessage ¶
func (*CredentialsRequest) ProtoMessage()
func (*CredentialsRequest) Reset ¶
func (m *CredentialsRequest) Reset()
func (*CredentialsRequest) String ¶
func (m *CredentialsRequest) String() string
type PasswordAuthenticatorClient ¶
type PasswordAuthenticatorClient interface {
Authenticate(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}
func NewPasswordAuthenticatorClient ¶
func NewPasswordAuthenticatorClient(cc *grpc.ClientConn) PasswordAuthenticatorClient
type PasswordAuthenticatorServer ¶
type PasswordAuthenticatorServer interface {
Authenticate(context.Context, *CredentialsRequest) (*AuthenticateResponse, error)
}
Click to show internal directories.
Click to hide internal directories.