proto

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Aug 14, 2025 License: MIT Imports: 8 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Admission_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "proto.Admission",
	HandlerType: (*AdmissionServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Admit",
			Handler:    _Admission_Admit_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "admission.proto",
}

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

View Source
var File_admission_proto protoreflect.FileDescriptor

Functions

func RegisterAdmissionServer

func RegisterAdmissionServer(s grpc.ServiceRegistrar, srv AdmissionServer)

Types

type AdmissionClient

type AdmissionClient interface {
	Admit(ctx context.Context, in *AdmissionRequest, opts ...grpc.CallOption) (*AdmissionReply, error)
}

AdmissionClient is the client API for Admission 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 NewAdmissionClient

func NewAdmissionClient(cc grpc.ClientConnInterface) AdmissionClient

type AdmissionReply

type AdmissionReply struct {
	Ok bool `protobuf:"varint,1,opt,name=ok,proto3" json:"ok,omitempty"`
	// contains filtered or unexported fields
}

func (*AdmissionReply) Descriptor deprecated

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

Deprecated: Use AdmissionReply.ProtoReflect.Descriptor instead.

func (*AdmissionReply) GetOk

func (x *AdmissionReply) GetOk() bool

func (*AdmissionReply) ProtoMessage

func (*AdmissionReply) ProtoMessage()

func (*AdmissionReply) ProtoReflect

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

func (*AdmissionReply) Reset

func (x *AdmissionReply) Reset()

func (*AdmissionReply) String

func (x *AdmissionReply) String() string

type AdmissionRequest

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

func (*AdmissionRequest) Descriptor deprecated

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

Deprecated: Use AdmissionRequest.ProtoReflect.Descriptor instead.

func (*AdmissionRequest) GetAddr

func (x *AdmissionRequest) GetAddr() string

func (*AdmissionRequest) ProtoMessage

func (*AdmissionRequest) ProtoMessage()

func (*AdmissionRequest) ProtoReflect

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

func (*AdmissionRequest) Reset

func (x *AdmissionRequest) Reset()

func (*AdmissionRequest) String

func (x *AdmissionRequest) String() string

type AdmissionServer

type AdmissionServer interface {
	Admit(context.Context, *AdmissionRequest) (*AdmissionReply, error)
	// contains filtered or unexported methods
}

AdmissionServer is the server API for Admission service. All implementations must embed UnimplementedAdmissionServer for forward compatibility

type UnimplementedAdmissionServer

type UnimplementedAdmissionServer struct {
}

UnimplementedAdmissionServer must be embedded to have forward compatible implementations.

func (UnimplementedAdmissionServer) Admit

type UnsafeAdmissionServer

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

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

Jump to

Keyboard shortcuts

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