proto

package
v0.3.9 Latest Latest
Warning

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

Go to latest
Published: May 14, 2024 License: Apache-2.0 Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var PasswordAuthenticator_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.PasswordAuthenticator",
	HandlerType: (*PasswordAuthenticatorServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Authenticate",
			Handler:    _PasswordAuthenticator_Authenticate_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "auth.proto",
}

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

Functions

func RegisterPasswordAuthenticatorServer

func RegisterPasswordAuthenticatorServer(s grpc.ServiceRegistrar, srv PasswordAuthenticatorServer)

Types

type AuthenticateResponse

type AuthenticateResponse struct {
	Authenticated bool  `protobuf:"varint,1,opt,name=authenticated,proto3" json:"authenticated,omitempty"`
	Status        int32 `protobuf:"varint,2,opt,name=status,proto3" json:"status,omitempty"`
	// contains filtered or unexported fields
}

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) GetStatus

func (x *AuthenticateResponse) GetStatus() int32

func (*AuthenticateResponse) ProtoMessage

func (*AuthenticateResponse) ProtoMessage()

func (*AuthenticateResponse) ProtoReflect added in v0.3.4

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

func (*AuthenticateResponse) Reset

func (x *AuthenticateResponse) Reset()

func (*AuthenticateResponse) String

func (x *AuthenticateResponse) String() string

type CredentialsRequest

type CredentialsRequest 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 (*CredentialsRequest) Descriptor deprecated

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

Deprecated: Use CredentialsRequest.ProtoReflect.Descriptor instead.

func (*CredentialsRequest) GetPassword

func (x *CredentialsRequest) GetPassword() string

func (*CredentialsRequest) GetUsername

func (x *CredentialsRequest) GetUsername() string

func (*CredentialsRequest) ProtoMessage

func (*CredentialsRequest) ProtoMessage()

func (*CredentialsRequest) ProtoReflect added in v0.3.4

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

func (*CredentialsRequest) Reset

func (x *CredentialsRequest) Reset()

func (*CredentialsRequest) String

func (x *CredentialsRequest) String() string

type PasswordAuthenticatorClient

type PasswordAuthenticatorClient interface {
	Authenticate(ctx context.Context, in *CredentialsRequest, opts ...grpc.CallOption) (*AuthenticateResponse, error)
}

PasswordAuthenticatorClient is the client API for PasswordAuthenticator 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.

type PasswordAuthenticatorServer

type PasswordAuthenticatorServer interface {
	Authenticate(context.Context, *CredentialsRequest) (*AuthenticateResponse, error)
	// contains filtered or unexported methods
}

PasswordAuthenticatorServer is the server API for PasswordAuthenticator service. All implementations must embed UnimplementedPasswordAuthenticatorServer for forward compatibility

type UnimplementedPasswordAuthenticatorServer added in v0.3.4

type UnimplementedPasswordAuthenticatorServer struct {
}

UnimplementedPasswordAuthenticatorServer must be embedded to have forward compatible implementations.

func (UnimplementedPasswordAuthenticatorServer) Authenticate added in v0.3.4

type UnsafePasswordAuthenticatorServer added in v0.3.4

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

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

Jump to

Keyboard shortcuts

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