rpc

package
v17.5.4 Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	GitlabAccess_MakeRequest_FullMethodName = "/gitlab.agent.gitlab_access.rpc.GitlabAccess/MakeRequest"
)

Variables

View Source
var File_internal_module_gitlab_access_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var GitlabAccess_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.gitlab_access.rpc.GitlabAccess",
	HandlerType: (*GitlabAccessServer)(nil),
	Methods:     []grpc.MethodDesc{},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "MakeRequest",
			Handler:       _GitlabAccess_MakeRequest_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "internal/module/gitlab_access/rpc/rpc.proto",
}

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

Functions

func RegisterGitlabAccessServer

func RegisterGitlabAccessServer(s grpc.ServiceRegistrar, srv GitlabAccessServer)

Types

type GitlabAccessClient

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

GitlabAccessClient is the client API for GitlabAccess 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 GitlabAccessServer

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

GitlabAccessServer is the server API for GitlabAccess service. All implementations must embed UnimplementedGitlabAccessServer for forward compatibility.

type GitlabAccess_MakeRequestClient

type GitlabAccess_MakeRequestClient = 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 GitlabAccess_MakeRequestServer

type GitlabAccess_MakeRequestServer = 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.

type HeaderExtra

type HeaderExtra struct {
	ModuleName string `protobuf:"bytes,1,opt,name=module_name,json=moduleName,proto3" json:"module_name,omitempty"`
	// contains filtered or unexported fields
}

func (*HeaderExtra) Descriptor deprecated

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

Deprecated: Use HeaderExtra.ProtoReflect.Descriptor instead.

func (*HeaderExtra) GetModuleName

func (x *HeaderExtra) GetModuleName() string

func (*HeaderExtra) ProtoMessage

func (*HeaderExtra) ProtoMessage()

func (*HeaderExtra) ProtoReflect

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

func (*HeaderExtra) Reset

func (x *HeaderExtra) Reset()

func (*HeaderExtra) String

func (x *HeaderExtra) String() string

type UnimplementedGitlabAccessServer

type UnimplementedGitlabAccessServer struct{}

UnimplementedGitlabAccessServer 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 UnsafeGitlabAccessServer

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

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

Jump to

Keyboard shortcuts

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