rpc

package
v14.10.0 Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2022 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

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

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 (*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, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsRequest) ValidateAll added in v14.5.0

func (m *GetConnectedAgentsRequest) ValidateAll() error

ValidateAll checks the field values on GetConnectedAgentsRequest with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsRequestMultiError, or nil if none found.

type GetConnectedAgentsRequestMultiError added in v14.5.0

type GetConnectedAgentsRequestMultiError []error

GetConnectedAgentsRequestMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsRequest.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsRequestMultiError) AllErrors added in v14.5.0

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsRequestMultiError) Error added in v14.5.0

Error returns a concatenation of all the error messages it wraps.

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

Cause function returns cause value.

func (GetConnectedAgentsRequestValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsRequestValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsRequestValidationError) Field

Field function returns field value.

func (GetConnectedAgentsRequestValidationError) Key

Key function returns key value.

func (GetConnectedAgentsRequestValidationError) Reason

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 (*GetConnectedAgentsResponse) ProtoMessage

func (*GetConnectedAgentsResponse) ProtoMessage()

func (*GetConnectedAgentsResponse) ProtoReflect

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, the first error encountered is returned, or nil if there are no violations.

func (*GetConnectedAgentsResponse) ValidateAll added in v14.5.0

func (m *GetConnectedAgentsResponse) ValidateAll() error

ValidateAll checks the field values on GetConnectedAgentsResponse with the rules defined in the proto definition for this message. If any rules are violated, the result is a list of violation errors wrapped in GetConnectedAgentsResponseMultiError, or nil if none found.

type GetConnectedAgentsResponseMultiError added in v14.5.0

type GetConnectedAgentsResponseMultiError []error

GetConnectedAgentsResponseMultiError is an error wrapping multiple validation errors returned by GetConnectedAgentsResponse.ValidateAll() if the designated constraints aren't met.

func (GetConnectedAgentsResponseMultiError) AllErrors added in v14.5.0

AllErrors returns a list of validation violation errors.

func (GetConnectedAgentsResponseMultiError) Error added in v14.5.0

Error returns a concatenation of all the error messages it wraps.

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

Cause function returns cause value.

func (GetConnectedAgentsResponseValidationError) Error

Error satisfies the builtin error interface

func (GetConnectedAgentsResponseValidationError) ErrorName

ErrorName returns error name.

func (GetConnectedAgentsResponseValidationError) Field

Field function returns field value.

func (GetConnectedAgentsResponseValidationError) Key

Key function returns key value.

func (GetConnectedAgentsResponseValidationError) Reason

Reason function returns reason value.

type UnimplementedAgentTrackerServer

type UnimplementedAgentTrackerServer struct {
}

UnimplementedAgentTrackerServer must be embedded to have forward compatible implementations.

func (UnimplementedAgentTrackerServer) GetConnectedAgents

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.

Jump to

Keyboard shortcuts

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