Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterGitlabAccessServer(s grpc.ServiceRegistrar, srv GitlabAccessServer)
- type GitlabAccessClient
- type GitlabAccessServer
- type GitlabAccess_MakeRequestClient
- type GitlabAccess_MakeRequestServer
- type HeaderExtra
- func (*HeaderExtra) Descriptor() ([]byte, []int)deprecated
- func (x *HeaderExtra) GetModuleName() string
- func (*HeaderExtra) ProtoMessage()
- func (x *HeaderExtra) ProtoReflect() protoreflect.Message
- func (x *HeaderExtra) Reset()
- func (x *HeaderExtra) String() string
- func (m *HeaderExtra) Validate() error
- func (m *HeaderExtra) ValidateAll() error
- type HeaderExtraMultiError
- type HeaderExtraValidationError
- func (e HeaderExtraValidationError) Cause() error
- func (e HeaderExtraValidationError) Error() string
- func (e HeaderExtraValidationError) ErrorName() string
- func (e HeaderExtraValidationError) Field() string
- func (e HeaderExtraValidationError) Key() bool
- func (e HeaderExtraValidationError) Reason() string
- type UnimplementedGitlabAccessServer
- type UnsafeGitlabAccessServer
Constants ¶
const (
GitlabAccess_MakeRequest_FullMethodName = "/gitlab.agent.gitlab_access.rpc.GitlabAccess/MakeRequest"
)
Variables ¶
var File_internal_module_gitlab_access_rpc_rpc_proto protoreflect.FileDescriptor
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.
func NewGitlabAccessClient ¶
func NewGitlabAccessClient(cc grpc.ClientConnInterface) GitlabAccessClient
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 ¶
func (e HeaderExtraValidationError) Cause() error
Cause function returns cause value.
func (HeaderExtraValidationError) Error ¶
func (e HeaderExtraValidationError) Error() string
Error satisfies the builtin error interface
func (HeaderExtraValidationError) ErrorName ¶
func (e HeaderExtraValidationError) ErrorName() string
ErrorName returns error name.
func (HeaderExtraValidationError) Field ¶
func (e HeaderExtraValidationError) Field() string
Field function returns field value.
func (HeaderExtraValidationError) Key ¶
func (e HeaderExtraValidationError) Key() bool
Key function returns key value.
func (HeaderExtraValidationError) Reason ¶
func (e HeaderExtraValidationError) Reason() string
Reason function returns reason value.
type UnimplementedGitlabAccessServer ¶
type UnimplementedGitlabAccessServer struct { }
UnimplementedGitlabAccessServer must be embedded to have forward compatible implementations.
func (UnimplementedGitlabAccessServer) MakeRequest ¶
func (UnimplementedGitlabAccessServer) MakeRequest(GitlabAccess_MakeRequestServer) error
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.