auth

package
v6.15.1 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AuthService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "AuthService",
	HandlerType: (*AuthServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Get",
			Handler:    _AuthService_Get_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "proto/auth/aerospike_proxy_auth.proto",
}

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

Functions

func RegisterAuthServiceServer

func RegisterAuthServiceServer(s grpc.ServiceRegistrar, srv AuthServiceServer)

Types

type AerospikeAuthRequest

type AerospikeAuthRequest 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
}

An auth request to get an access token to perform operations on Aerospike database.

func (*AerospikeAuthRequest) Descriptor deprecated

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

Deprecated: Use AerospikeAuthRequest.ProtoReflect.Descriptor instead.

func (*AerospikeAuthRequest) GetPassword

func (x *AerospikeAuthRequest) GetPassword() string

func (*AerospikeAuthRequest) GetUsername

func (x *AerospikeAuthRequest) GetUsername() string

func (*AerospikeAuthRequest) ProtoMessage

func (*AerospikeAuthRequest) ProtoMessage()

func (*AerospikeAuthRequest) ProtoReflect

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

func (*AerospikeAuthRequest) Reset

func (x *AerospikeAuthRequest) Reset()

func (*AerospikeAuthRequest) String

func (x *AerospikeAuthRequest) String() string

type AerospikeAuthResponse

type AerospikeAuthResponse struct {
	Token string `protobuf:"bytes,1,opt,name=token,proto3" json:"token,omitempty"`
	// contains filtered or unexported fields
}

An auth token to perform operations on Aerospike database.

func (*AerospikeAuthResponse) Descriptor deprecated

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

Deprecated: Use AerospikeAuthResponse.ProtoReflect.Descriptor instead.

func (*AerospikeAuthResponse) GetToken

func (x *AerospikeAuthResponse) GetToken() string

func (*AerospikeAuthResponse) ProtoMessage

func (*AerospikeAuthResponse) ProtoMessage()

func (*AerospikeAuthResponse) ProtoReflect

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

func (*AerospikeAuthResponse) Reset

func (x *AerospikeAuthResponse) Reset()

func (*AerospikeAuthResponse) String

func (x *AerospikeAuthResponse) String() string

type AuthServiceClient

type AuthServiceClient interface {
	Get(ctx context.Context, in *AerospikeAuthRequest, opts ...grpc.CallOption) (*AerospikeAuthResponse, error)
}

AuthServiceClient is the client API for AuthService 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 AuthServiceServer

type AuthServiceServer interface {
	Get(context.Context, *AerospikeAuthRequest) (*AerospikeAuthResponse, error)
	// contains filtered or unexported methods
}

AuthServiceServer is the server API for AuthService service. All implementations must embed UnimplementedAuthServiceServer for forward compatibility

type UnimplementedAuthServiceServer

type UnimplementedAuthServiceServer struct {
}

UnimplementedAuthServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedAuthServiceServer) Get

type UnsafeAuthServiceServer

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

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

Jump to

Keyboard shortcuts

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