Documentation ¶
Index ¶
- Variables
- func RegisterAgentTrackerServer(s grpc.ServiceRegistrar, srv AgentTrackerServer)
- type AgentTrackerClient
- type AgentTrackerServer
- type GetConnectedAgentsRequest
- func (*GetConnectedAgentsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsRequest) GetAgentId() int64
- func (x *GetConnectedAgentsRequest) GetProjectId() int64
- func (m *GetConnectedAgentsRequest) GetRequest() isGetConnectedAgentsRequest_Request
- func (*GetConnectedAgentsRequest) ProtoMessage()
- func (x *GetConnectedAgentsRequest) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsRequest) Reset()
- func (x *GetConnectedAgentsRequest) String() string
- func (m *GetConnectedAgentsRequest) Validate() error
- type GetConnectedAgentsRequestValidationError
- func (e GetConnectedAgentsRequestValidationError) Cause() error
- func (e GetConnectedAgentsRequestValidationError) Error() string
- func (e GetConnectedAgentsRequestValidationError) ErrorName() string
- func (e GetConnectedAgentsRequestValidationError) Field() string
- func (e GetConnectedAgentsRequestValidationError) Key() bool
- func (e GetConnectedAgentsRequestValidationError) Reason() string
- type GetConnectedAgentsRequest_AgentId
- type GetConnectedAgentsRequest_ProjectId
- type GetConnectedAgentsResponse
- func (*GetConnectedAgentsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetConnectedAgentsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
- func (*GetConnectedAgentsResponse) ProtoMessage()
- func (x *GetConnectedAgentsResponse) ProtoReflect() protoreflect.Message
- func (x *GetConnectedAgentsResponse) Reset()
- func (x *GetConnectedAgentsResponse) String() string
- func (m *GetConnectedAgentsResponse) Validate() error
- type GetConnectedAgentsResponseValidationError
- func (e GetConnectedAgentsResponseValidationError) Cause() error
- func (e GetConnectedAgentsResponseValidationError) Error() string
- func (e GetConnectedAgentsResponseValidationError) ErrorName() string
- func (e GetConnectedAgentsResponseValidationError) Field() string
- func (e GetConnectedAgentsResponseValidationError) Key() bool
- func (e GetConnectedAgentsResponseValidationError) Reason() string
- type UnimplementedAgentTrackerServer
- type UnsafeAgentTrackerServer
Constants ¶
This section is empty.
Variables ¶
var AgentTracker_ServiceDesc = grpc.ServiceDesc{ ServiceName: "gitlab.agent.agent_tracker.rpc.AgentTracker", HandlerType: (*AgentTrackerServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetConnectedAgents", Handler: _AgentTracker_GetConnectedAgents_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "internal/module/agent_tracker/rpc/rpc.proto", }
AgentTracker_ServiceDesc is the grpc.ServiceDesc for AgentTracker 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_tracker_rpc_rpc_proto protoreflect.FileDescriptor
Functions ¶
func RegisterAgentTrackerServer ¶
func RegisterAgentTrackerServer(s grpc.ServiceRegistrar, srv AgentTrackerServer)
Types ¶
type AgentTrackerClient ¶
type AgentTrackerClient interface {
GetConnectedAgents(ctx context.Context, in *GetConnectedAgentsRequest, opts ...grpc.CallOption) (*GetConnectedAgentsResponse, error)
}
AgentTrackerClient is the client API for AgentTracker 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 NewAgentTrackerClient ¶
func NewAgentTrackerClient(cc grpc.ClientConnInterface) AgentTrackerClient
type AgentTrackerServer ¶
type AgentTrackerServer interface { GetConnectedAgents(context.Context, *GetConnectedAgentsRequest) (*GetConnectedAgentsResponse, error) // contains filtered or unexported methods }
AgentTrackerServer is the server API for AgentTracker service. All implementations must embed UnimplementedAgentTrackerServer for forward compatibility
type GetConnectedAgentsRequest ¶
type GetConnectedAgentsRequest struct { // Types that are assignable to Request: // *GetConnectedAgentsRequest_ProjectId // *GetConnectedAgentsRequest_AgentId Request isGetConnectedAgentsRequest_Request `protobuf_oneof:"request"` // contains filtered or unexported fields }
func (*GetConnectedAgentsRequest) Descriptor
deprecated
func (*GetConnectedAgentsRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsRequest.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsRequest) GetAgentId ¶
func (x *GetConnectedAgentsRequest) GetAgentId() int64
func (*GetConnectedAgentsRequest) GetProjectId ¶
func (x *GetConnectedAgentsRequest) GetProjectId() int64
func (*GetConnectedAgentsRequest) GetRequest ¶
func (m *GetConnectedAgentsRequest) GetRequest() isGetConnectedAgentsRequest_Request
func (*GetConnectedAgentsRequest) ProtoMessage ¶
func (*GetConnectedAgentsRequest) ProtoMessage()
func (*GetConnectedAgentsRequest) ProtoReflect ¶
func (x *GetConnectedAgentsRequest) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsRequest) Reset ¶
func (x *GetConnectedAgentsRequest) Reset()
func (*GetConnectedAgentsRequest) String ¶
func (x *GetConnectedAgentsRequest) String() string
func (*GetConnectedAgentsRequest) Validate ¶
func (m *GetConnectedAgentsRequest) Validate() error
Validate checks the field values on GetConnectedAgentsRequest with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetConnectedAgentsRequestValidationError ¶
type GetConnectedAgentsRequestValidationError struct {
// contains filtered or unexported fields
}
GetConnectedAgentsRequestValidationError is the validation error returned by GetConnectedAgentsRequest.Validate if the designated constraints aren't met.
func (GetConnectedAgentsRequestValidationError) Cause ¶
func (e GetConnectedAgentsRequestValidationError) Cause() error
Cause function returns cause value.
func (GetConnectedAgentsRequestValidationError) Error ¶
func (e GetConnectedAgentsRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GetConnectedAgentsRequestValidationError) ErrorName ¶
func (e GetConnectedAgentsRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GetConnectedAgentsRequestValidationError) Field ¶
func (e GetConnectedAgentsRequestValidationError) Field() string
Field function returns field value.
func (GetConnectedAgentsRequestValidationError) Key ¶
func (e GetConnectedAgentsRequestValidationError) Key() bool
Key function returns key value.
func (GetConnectedAgentsRequestValidationError) Reason ¶
func (e GetConnectedAgentsRequestValidationError) Reason() string
Reason function returns reason value.
type GetConnectedAgentsRequest_AgentId ¶
type GetConnectedAgentsRequest_AgentId struct {
AgentId int64 `protobuf:"varint,2,opt,name=agent_id,json=agentId,proto3,oneof"`
}
type GetConnectedAgentsRequest_ProjectId ¶
type GetConnectedAgentsRequest_ProjectId struct {
ProjectId int64 `protobuf:"varint,1,opt,name=project_id,json=projectId,proto3,oneof"`
}
type GetConnectedAgentsResponse ¶
type GetConnectedAgentsResponse struct { Agents []*agent_tracker.ConnectedAgentInfo `protobuf:"bytes,1,rep,name=agents,proto3" json:"agents,omitempty"` // contains filtered or unexported fields }
func (*GetConnectedAgentsResponse) Descriptor
deprecated
func (*GetConnectedAgentsResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetConnectedAgentsResponse.ProtoReflect.Descriptor instead.
func (*GetConnectedAgentsResponse) GetAgents ¶
func (x *GetConnectedAgentsResponse) GetAgents() []*agent_tracker.ConnectedAgentInfo
func (*GetConnectedAgentsResponse) ProtoMessage ¶
func (*GetConnectedAgentsResponse) ProtoMessage()
func (*GetConnectedAgentsResponse) ProtoReflect ¶
func (x *GetConnectedAgentsResponse) ProtoReflect() protoreflect.Message
func (*GetConnectedAgentsResponse) Reset ¶
func (x *GetConnectedAgentsResponse) Reset()
func (*GetConnectedAgentsResponse) String ¶
func (x *GetConnectedAgentsResponse) String() string
func (*GetConnectedAgentsResponse) Validate ¶
func (m *GetConnectedAgentsResponse) Validate() error
Validate checks the field values on GetConnectedAgentsResponse with the rules defined in the proto definition for this message. If any rules are violated, an error is returned.
type GetConnectedAgentsResponseValidationError ¶
type GetConnectedAgentsResponseValidationError struct {
// contains filtered or unexported fields
}
GetConnectedAgentsResponseValidationError is the validation error returned by GetConnectedAgentsResponse.Validate if the designated constraints aren't met.
func (GetConnectedAgentsResponseValidationError) Cause ¶
func (e GetConnectedAgentsResponseValidationError) Cause() error
Cause function returns cause value.
func (GetConnectedAgentsResponseValidationError) Error ¶
func (e GetConnectedAgentsResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GetConnectedAgentsResponseValidationError) ErrorName ¶
func (e GetConnectedAgentsResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GetConnectedAgentsResponseValidationError) Field ¶
func (e GetConnectedAgentsResponseValidationError) Field() string
Field function returns field value.
func (GetConnectedAgentsResponseValidationError) Key ¶
func (e GetConnectedAgentsResponseValidationError) Key() bool
Key function returns key value.
func (GetConnectedAgentsResponseValidationError) Reason ¶
func (e GetConnectedAgentsResponseValidationError) Reason() string
Reason function returns reason value.
type UnimplementedAgentTrackerServer ¶
type UnimplementedAgentTrackerServer struct { }
UnimplementedAgentTrackerServer must be embedded to have forward compatible implementations.
func (UnimplementedAgentTrackerServer) GetConnectedAgents ¶
func (UnimplementedAgentTrackerServer) GetConnectedAgents(context.Context, *GetConnectedAgentsRequest) (*GetConnectedAgentsResponse, error)
type UnsafeAgentTrackerServer ¶
type UnsafeAgentTrackerServer interface {
// contains filtered or unexported methods
}
UnsafeAgentTrackerServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to AgentTrackerServer will result in compilation errors.