Documentation
¶
Index ¶
- Variables
- func RegisterAuthenticatorServer(s grpc.ServiceRegistrar, srv AuthenticatorServer)
- type AuthenticateReply
- func (*AuthenticateReply) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateReply) GetId() string
- func (x *AuthenticateReply) GetOk() bool
- func (*AuthenticateReply) ProtoMessage()
- func (x *AuthenticateReply) ProtoReflect() protoreflect.Message
- func (x *AuthenticateReply) Reset()
- func (x *AuthenticateReply) String() string
- type AuthenticateRequest
- func (*AuthenticateRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AuthenticateRequest) GetClient() string
- 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 AuthenticatorClient
- type AuthenticatorServer
- type UnimplementedAuthenticatorServer
- type UnsafeAuthenticatorServer
Constants ¶
This section is empty.
Variables ¶
var Authenticator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "proto.Authenticator", HandlerType: (*AuthenticatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Authenticate", Handler: _Authenticator_Authenticate_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "auth.proto", }
Authenticator_ServiceDesc is the grpc.ServiceDesc for Authenticator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_auth_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAuthenticatorServer ¶
func RegisterAuthenticatorServer(s grpc.ServiceRegistrar, srv AuthenticatorServer)
Types ¶
type AuthenticateReply ¶
type AuthenticateReply struct {
Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
func (*AuthenticateReply) Descriptor
deprecated
func (*AuthenticateReply) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateReply.ProtoReflect.Descriptor instead.
func (*AuthenticateReply) GetId ¶
func (x *AuthenticateReply) GetId() string
func (*AuthenticateReply) GetOk ¶
func (x *AuthenticateReply) GetOk() bool
func (*AuthenticateReply) ProtoMessage ¶
func (*AuthenticateReply) ProtoMessage()
func (*AuthenticateReply) ProtoReflect ¶
func (x *AuthenticateReply) ProtoReflect() protoreflect.Message
func (*AuthenticateReply) Reset ¶
func (x *AuthenticateReply) Reset()
func (*AuthenticateReply) String ¶
func (x *AuthenticateReply) String() string
type AuthenticateRequest ¶
type AuthenticateRequest 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"`
Client string `protobuf:"bytes,3,opt,name=client,proto3" json:"client,omitempty"`
// contains filtered or unexported fields
}
func (*AuthenticateRequest) Descriptor
deprecated
func (*AuthenticateRequest) Descriptor() ([]byte, []int)
Deprecated: Use AuthenticateRequest.ProtoReflect.Descriptor instead.
func (*AuthenticateRequest) GetClient ¶
func (x *AuthenticateRequest) GetClient() string
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 AuthenticatorClient ¶
type AuthenticatorClient interface {
Authenticate(ctx context.Context, in *AuthenticateRequest, opts ...grpc.CallOption) (*AuthenticateReply, 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 {
Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateReply, error)
// contains filtered or unexported methods
}
AuthenticatorServer is the server API for Authenticator service. All implementations must embed UnimplementedAuthenticatorServer for forward compatibility
type UnimplementedAuthenticatorServer ¶
type UnimplementedAuthenticatorServer struct {
}
UnimplementedAuthenticatorServer must be embedded to have forward compatible implementations.
func (UnimplementedAuthenticatorServer) Authenticate ¶
func (UnimplementedAuthenticatorServer) Authenticate(context.Context, *AuthenticateRequest) (*AuthenticateReply, 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.