rpc

package
v14.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2021 License: MIT Imports: 21 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, 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

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, 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

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