rpc

package
v17.3.0-rc7 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AgentRegistrar_Register_FullMethodName   = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Register"
	AgentRegistrar_Unregister_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Unregister"
)

Variables

View Source
var AgentRegistrar_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.agent_registrar.rpc.AgentRegistrar",
	HandlerType: (*AgentRegistrarServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Register",
			Handler:    _AgentRegistrar_Register_Handler,
		},
		{
			MethodName: "Unregister",
			Handler:    _AgentRegistrar_Unregister_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/module/agent_registrar/rpc/rpc.proto",
}

AgentRegistrar_ServiceDesc is the grpc.ServiceDesc for AgentRegistrar 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_internal_module_agent_registrar_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterAgentRegistrarServer

func RegisterAgentRegistrarServer(s grpc.ServiceRegistrar, srv AgentRegistrarServer)

Types

type AgentRegistrarClient

type AgentRegistrarClient interface {
	Register(ctx context.Context, in *RegisterRequest, opts ...grpc.CallOption) (*RegisterResponse, error)
	Unregister(ctx context.Context, in *UnregisterRequest, opts ...grpc.CallOption) (*UnregisterResponse, error)
}

AgentRegistrarClient is the client API for AgentRegistrar 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 AgentRegistrarServer

type AgentRegistrarServer interface {
	Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
	Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error)
	// contains filtered or unexported methods
}

AgentRegistrarServer is the server API for AgentRegistrar service. All implementations must embed UnimplementedAgentRegistrarServer for forward compatibility.

type RegisterRequest

type RegisterRequest struct {
	AgentMeta *entity.AgentMeta `protobuf:"bytes,1,opt,name=agent_meta,json=agentMeta,proto3" json:"agent_meta,omitempty"`
	PodId     int64             `protobuf:"varint,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// contains filtered or unexported fields
}

func (*RegisterRequest) Descriptor deprecated

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

Deprecated: Use RegisterRequest.ProtoReflect.Descriptor instead.

func (*RegisterRequest) GetAgentMeta

func (x *RegisterRequest) GetAgentMeta() *entity.AgentMeta

func (*RegisterRequest) GetPodId

func (x *RegisterRequest) GetPodId() int64

func (*RegisterRequest) ProtoMessage

func (*RegisterRequest) ProtoMessage()

func (*RegisterRequest) ProtoReflect

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

func (*RegisterRequest) Reset

func (x *RegisterRequest) Reset()

func (*RegisterRequest) String

func (x *RegisterRequest) String() string

type RegisterResponse

type RegisterResponse struct {
	// contains filtered or unexported fields
}

func (*RegisterResponse) Descriptor deprecated

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

Deprecated: Use RegisterResponse.ProtoReflect.Descriptor instead.

func (*RegisterResponse) ProtoMessage

func (*RegisterResponse) ProtoMessage()

func (*RegisterResponse) ProtoReflect

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

func (*RegisterResponse) Reset

func (x *RegisterResponse) Reset()

func (*RegisterResponse) String

func (x *RegisterResponse) String() string

type UnimplementedAgentRegistrarServer

type UnimplementedAgentRegistrarServer struct{}

UnimplementedAgentRegistrarServer 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 (UnimplementedAgentRegistrarServer) Register

func (UnimplementedAgentRegistrarServer) Unregister added in v17.1.0

type UnregisterRequest added in v17.1.0

type UnregisterRequest struct {
	AgentMeta *entity.AgentMeta `protobuf:"bytes,1,opt,name=agent_meta,json=agentMeta,proto3" json:"agent_meta,omitempty"`
	PodId     int64             `protobuf:"varint,2,opt,name=pod_id,json=podId,proto3" json:"pod_id,omitempty"`
	// contains filtered or unexported fields
}

func (*UnregisterRequest) Descriptor deprecated added in v17.1.0

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

Deprecated: Use UnregisterRequest.ProtoReflect.Descriptor instead.

func (*UnregisterRequest) GetAgentMeta added in v17.1.0

func (x *UnregisterRequest) GetAgentMeta() *entity.AgentMeta

func (*UnregisterRequest) GetPodId added in v17.1.0

func (x *UnregisterRequest) GetPodId() int64

func (*UnregisterRequest) ProtoMessage added in v17.1.0

func (*UnregisterRequest) ProtoMessage()

func (*UnregisterRequest) ProtoReflect added in v17.1.0

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

func (*UnregisterRequest) Reset added in v17.1.0

func (x *UnregisterRequest) Reset()

func (*UnregisterRequest) String added in v17.1.0

func (x *UnregisterRequest) String() string

type UnregisterResponse added in v17.1.0

type UnregisterResponse struct {
	// contains filtered or unexported fields
}

func (*UnregisterResponse) Descriptor deprecated added in v17.1.0

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

Deprecated: Use UnregisterResponse.ProtoReflect.Descriptor instead.

func (*UnregisterResponse) ProtoMessage added in v17.1.0

func (*UnregisterResponse) ProtoMessage()

func (*UnregisterResponse) ProtoReflect added in v17.1.0

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

func (*UnregisterResponse) Reset added in v17.1.0

func (x *UnregisterResponse) Reset()

func (*UnregisterResponse) String added in v17.1.0

func (x *UnregisterResponse) String() string

type UnsafeAgentRegistrarServer

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

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

Jump to

Keyboard shortcuts

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