rpc

package
v17.0.0-rc1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: MIT Imports: 22 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) (GitlabAccess_MakeRequestClient, 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(GitlabAccess_MakeRequestServer) 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 interface {
	Send(*grpctool.HttpRequest) error
	Recv() (*grpctool.HttpResponse, error)
	grpc.ClientStream
}

type GitlabAccess_MakeRequestServer

type GitlabAccess_MakeRequestServer interface {
	Send(*grpctool.HttpResponse) error
	Recv() (*grpctool.HttpRequest, error)
	grpc.ServerStream
}

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

func (*HeaderExtra) Validate

func (m *HeaderExtra) Validate() error

Validate checks the field values on HeaderExtra 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 (*HeaderExtra) ValidateAll

func (m *HeaderExtra) ValidateAll() error

ValidateAll checks the field values on HeaderExtra 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 HeaderExtraMultiError, or nil if none found.

type HeaderExtraMultiError

type HeaderExtraMultiError []error

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

func (HeaderExtraMultiError) AllErrors

func (m HeaderExtraMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (HeaderExtraMultiError) Error

func (m HeaderExtraMultiError) Error() string

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

type HeaderExtraValidationError

type HeaderExtraValidationError struct {
	// contains filtered or unexported fields
}

HeaderExtraValidationError is the validation error returned by HeaderExtra.Validate if the designated constraints aren't met.

func (HeaderExtraValidationError) Cause

Cause function returns cause value.

func (HeaderExtraValidationError) Error

Error satisfies the builtin error interface

func (HeaderExtraValidationError) ErrorName

func (e HeaderExtraValidationError) ErrorName() string

ErrorName returns error name.

func (HeaderExtraValidationError) Field

Field function returns field value.

func (HeaderExtraValidationError) Key

Key function returns key value.

func (HeaderExtraValidationError) Reason

Reason function returns reason value.

type UnimplementedGitlabAccessServer

type UnimplementedGitlabAccessServer struct {
}

UnimplementedGitlabAccessServer must be embedded to have forward compatible implementations.

func (UnimplementedGitlabAccessServer) MakeRequest

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