rpc

package
v17.2.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Notifications_GitPushEvent_FullMethodName = "/gitlab.agent.notifications.rpc.Notifications/GitPushEvent"
)

Variables

View Source
var File_internal_module_notifications_rpc_rpc_proto protoreflect.FileDescriptor
View Source
var Notifications_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.notifications.rpc.Notifications",
	HandlerType: (*NotificationsServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "GitPushEvent",
			Handler:    _Notifications_GitPushEvent_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "internal/module/notifications/rpc/rpc.proto",
}

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

Functions

func RegisterNotificationsServer

func RegisterNotificationsServer(s grpc.ServiceRegistrar, srv NotificationsServer)

Types

type GitPushEventRequest

type GitPushEventRequest struct {
	Event *event.GitPushEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
	// contains filtered or unexported fields
}

func (*GitPushEventRequest) Descriptor deprecated

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

Deprecated: Use GitPushEventRequest.ProtoReflect.Descriptor instead.

func (*GitPushEventRequest) GetEvent

func (x *GitPushEventRequest) GetEvent() *event.GitPushEvent

func (*GitPushEventRequest) ProtoMessage

func (*GitPushEventRequest) ProtoMessage()

func (*GitPushEventRequest) ProtoReflect

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

func (*GitPushEventRequest) Reset

func (x *GitPushEventRequest) Reset()

func (*GitPushEventRequest) String

func (x *GitPushEventRequest) String() string

func (*GitPushEventRequest) Validate

func (m *GitPushEventRequest) Validate() error

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

func (m *GitPushEventRequest) ValidateAll() error

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

type GitPushEventRequestMultiError

type GitPushEventRequestMultiError []error

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

func (GitPushEventRequestMultiError) AllErrors

func (m GitPushEventRequestMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitPushEventRequestMultiError) Error

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

type GitPushEventRequestValidationError

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

GitPushEventRequestValidationError is the validation error returned by GitPushEventRequest.Validate if the designated constraints aren't met.

func (GitPushEventRequestValidationError) Cause

Cause function returns cause value.

func (GitPushEventRequestValidationError) Error

Error satisfies the builtin error interface

func (GitPushEventRequestValidationError) ErrorName

ErrorName returns error name.

func (GitPushEventRequestValidationError) Field

Field function returns field value.

func (GitPushEventRequestValidationError) Key

Key function returns key value.

func (GitPushEventRequestValidationError) Reason

Reason function returns reason value.

type GitPushEventResponse

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

func (*GitPushEventResponse) Descriptor deprecated

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

Deprecated: Use GitPushEventResponse.ProtoReflect.Descriptor instead.

func (*GitPushEventResponse) ProtoMessage

func (*GitPushEventResponse) ProtoMessage()

func (*GitPushEventResponse) ProtoReflect

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

func (*GitPushEventResponse) Reset

func (x *GitPushEventResponse) Reset()

func (*GitPushEventResponse) String

func (x *GitPushEventResponse) String() string

func (*GitPushEventResponse) Validate

func (m *GitPushEventResponse) Validate() error

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

func (m *GitPushEventResponse) ValidateAll() error

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

type GitPushEventResponseMultiError

type GitPushEventResponseMultiError []error

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

func (GitPushEventResponseMultiError) AllErrors

func (m GitPushEventResponseMultiError) AllErrors() []error

AllErrors returns a list of validation violation errors.

func (GitPushEventResponseMultiError) Error

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

type GitPushEventResponseValidationError

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

GitPushEventResponseValidationError is the validation error returned by GitPushEventResponse.Validate if the designated constraints aren't met.

func (GitPushEventResponseValidationError) Cause

Cause function returns cause value.

func (GitPushEventResponseValidationError) Error

Error satisfies the builtin error interface

func (GitPushEventResponseValidationError) ErrorName

ErrorName returns error name.

func (GitPushEventResponseValidationError) Field

Field function returns field value.

func (GitPushEventResponseValidationError) Key

Key function returns key value.

func (GitPushEventResponseValidationError) Reason

Reason function returns reason value.

type NotificationsClient

type NotificationsClient interface {
	GitPushEvent(ctx context.Context, in *GitPushEventRequest, opts ...grpc.CallOption) (*GitPushEventResponse, error)
}

NotificationsClient is the client API for Notifications 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 NotificationsServer

type NotificationsServer interface {
	GitPushEvent(context.Context, *GitPushEventRequest) (*GitPushEventResponse, error)
	// contains filtered or unexported methods
}

NotificationsServer is the server API for Notifications service. All implementations must embed UnimplementedNotificationsServer for forward compatibility

type UnimplementedNotificationsServer

type UnimplementedNotificationsServer struct {
}

UnimplementedNotificationsServer must be embedded to have forward compatible implementations.

func (UnimplementedNotificationsServer) GitPushEvent

type UnsafeNotificationsServer

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

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

Jump to

Keyboard shortcuts

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