rpc

package
v18.5.0-rc4 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Workspaces_TunnelHTTP_FullMethodName = "/gitlab.agent.workspaces.rpc.Workspaces/TunnelHTTP"
)

Variables

View Source
var File_internal_module_workspaces_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var Workspaces_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.workspaces.rpc.Workspaces",
	HandlerType: (*WorkspacesServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "TunnelHTTP",
			Handler:       _Workspaces_TunnelHTTP_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "internal/module/workspaces/rpc/rpc.proto",
}

Workspaces_ServiceDesc is the grpc.ServiceDesc for Workspaces service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)

Functions

func RegisterWorkspacesServer

func RegisterWorkspacesServer(s grpc.ServiceRegistrar, srv WorkspacesServer)

Types

type HTTPHeaderExtra

type HTTPHeaderExtra struct {
	Port uint32 `protobuf:"varint,1,opt,name=port,proto3" json:"port,omitempty"`
	// contains filtered or unexported fields
}

func (*HTTPHeaderExtra) Descriptor deprecated

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

Deprecated: Use HTTPHeaderExtra.ProtoReflect.Descriptor instead.

func (*HTTPHeaderExtra) GetPort

func (x *HTTPHeaderExtra) GetPort() uint32

func (*HTTPHeaderExtra) ProtoMessage

func (*HTTPHeaderExtra) ProtoMessage()

func (*HTTPHeaderExtra) ProtoReflect

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

func (*HTTPHeaderExtra) Reset

func (x *HTTPHeaderExtra) Reset()

func (*HTTPHeaderExtra) String

func (x *HTTPHeaderExtra) String() string

type UnimplementedWorkspacesServer

type UnimplementedWorkspacesServer struct{}

UnimplementedWorkspacesServer 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.

type UnsafeWorkspacesServer

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

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

type WorkspacesClient

type WorkspacesClient interface {
	TunnelHTTP(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[grpctool.HttpRequest, grpctool.HttpResponse], error)
}

WorkspacesClient is the client API for Workspaces 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 NewWorkspacesClient

func NewWorkspacesClient(cc grpc.ClientConnInterface) WorkspacesClient

type WorkspacesServer

type WorkspacesServer interface {
	TunnelHTTP(grpc.BidiStreamingServer[grpctool.HttpRequest, grpctool.HttpResponse]) error
	// contains filtered or unexported methods
}

WorkspacesServer is the server API for Workspaces service. All implementations must embed UnimplementedWorkspacesServer for forward compatibility.

type Workspaces_TunnelHTTPClient

type Workspaces_TunnelHTTPClient = grpc.BidiStreamingClient[grpctool.HttpRequest, grpctool.HttpResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type Workspaces_TunnelHTTPServer

type Workspaces_TunnelHTTPServer = grpc.BidiStreamingServer[grpctool.HttpRequest, grpctool.HttpResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

Jump to

Keyboard shortcuts

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