proto

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2026 License: MIT Imports: 9 Imported by: 2 modules, 1 package

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	Authenticator_Authenticate_FullMethodName = "/proto.Authenticator/Authenticate"
)

Variables

View Source
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)

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"`
	Service               string   `protobuf:"bytes,4,opt,name=service,proto3" json:"service,omitempty"`
	ClientCn              string   `protobuf:"bytes,5,opt,name=client_cn,json=clientCn,proto3" json:"client_cn,omitempty"`
	ClientSan             []string `protobuf:"bytes,6,rep,name=client_san,json=clientSan,proto3" json:"client_san,omitempty"`
	ClientCertFingerprint string   `` /* 126-byte string literal not displayed */
	// 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) GetClientCertFingerprint added in v0.8.1

func (x *AuthenticateRequest) GetClientCertFingerprint() string

func (*AuthenticateRequest) GetClientCn added in v0.8.1

func (x *AuthenticateRequest) GetClientCn() string

func (*AuthenticateRequest) GetClientSan added in v0.8.1

func (x *AuthenticateRequest) GetClientSan() []string

func (*AuthenticateRequest) GetPassword

func (x *AuthenticateRequest) GetPassword() string

func (*AuthenticateRequest) GetService added in v0.8.1

func (x *AuthenticateRequest) GetService() 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.

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.

NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.

func (UnimplementedAuthenticatorServer) Authenticate

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.

Jump to

Keyboard shortcuts

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