Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterAgentRegistrarServer(s grpc.ServiceRegistrar, srv AgentRegistrarServer)
- type AgentRegistrarClient
- type AgentRegistrarServer
- type RegisterRequest
- func (*RegisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterRequest) GetAgentMeta() *entity.AgentMeta
- func (x *RegisterRequest) GetInstanceId() int64
- func (*RegisterRequest) ProtoMessage()
- func (x *RegisterRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterRequest) Reset()
- func (x *RegisterRequest) String() string
- type RegisterResponse
- type UnimplementedAgentRegistrarServer
- type UnregisterRequest
- func (*UnregisterRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterRequest) GetAgentMeta() *entity.AgentMeta
- func (x *UnregisterRequest) GetInstanceId() int64
- func (*UnregisterRequest) ProtoMessage()
- func (x *UnregisterRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterRequest) Reset()
- func (x *UnregisterRequest) String() string
- type UnregisterResponse
- type UnsafeAgentRegistrarServer
Constants ¶
const ( AgentRegistrar_Register_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Register" AgentRegistrar_Unregister_FullMethodName = "/gitlab.agent.agent_registrar.rpc.AgentRegistrar/Unregister" )
Variables ¶
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)
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.
func NewAgentRegistrarClient ¶
func NewAgentRegistrarClient(cc grpc.ClientConnInterface) AgentRegistrarClient
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"` InstanceId int64 `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_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) GetInstanceId ¶ added in v17.5.0
func (x *RegisterRequest) GetInstanceId() 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) Register(context.Context, *RegisterRequest) (*RegisterResponse, error)
func (UnimplementedAgentRegistrarServer) Unregister ¶ added in v17.1.0
func (UnimplementedAgentRegistrarServer) Unregister(context.Context, *UnregisterRequest) (*UnregisterResponse, error)
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"` InstanceId int64 `protobuf:"varint,2,opt,name=instance_id,json=instanceId,proto3" json:"instance_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) GetInstanceId ¶ added in v17.5.0
func (x *UnregisterRequest) GetInstanceId() 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.