Documentation ¶
Index ¶
- Constants
- Variables
- func RegisterNotificationsServer(s grpc.ServiceRegistrar, srv NotificationsServer)
- type GitPushEventRequest
- func (*GitPushEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GitPushEventRequest) GetEvent() *event.GitPushEvent
- func (*GitPushEventRequest) ProtoMessage()
- func (x *GitPushEventRequest) ProtoReflect() protoreflect.Message
- func (x *GitPushEventRequest) Reset()
- func (x *GitPushEventRequest) String() string
- func (m *GitPushEventRequest) Validate() error
- func (m *GitPushEventRequest) ValidateAll() error
- type GitPushEventRequestMultiError
- type GitPushEventRequestValidationError
- func (e GitPushEventRequestValidationError) Cause() error
- func (e GitPushEventRequestValidationError) Error() string
- func (e GitPushEventRequestValidationError) ErrorName() string
- func (e GitPushEventRequestValidationError) Field() string
- func (e GitPushEventRequestValidationError) Key() bool
- func (e GitPushEventRequestValidationError) Reason() string
- type GitPushEventResponse
- func (*GitPushEventResponse) Descriptor() ([]byte, []int)deprecated
- func (*GitPushEventResponse) ProtoMessage()
- func (x *GitPushEventResponse) ProtoReflect() protoreflect.Message
- func (x *GitPushEventResponse) Reset()
- func (x *GitPushEventResponse) String() string
- func (m *GitPushEventResponse) Validate() error
- func (m *GitPushEventResponse) ValidateAll() error
- type GitPushEventResponseMultiError
- type GitPushEventResponseValidationError
- func (e GitPushEventResponseValidationError) Cause() error
- func (e GitPushEventResponseValidationError) Error() string
- func (e GitPushEventResponseValidationError) ErrorName() string
- func (e GitPushEventResponseValidationError) Field() string
- func (e GitPushEventResponseValidationError) Key() bool
- func (e GitPushEventResponseValidationError) Reason() string
- type NotificationsClient
- type NotificationsServer
- type UnimplementedNotificationsServer
- type UnsafeNotificationsServer
Constants ¶
const (
Notifications_GitPushEvent_FullMethodName = "/gitlab.agent.notifications.rpc.Notifications/GitPushEvent"
)
Variables ¶
var File_internal_module_notifications_rpc_rpc_proto protoreflect.FileDescriptor
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 ¶
func (m GitPushEventRequestMultiError) Error() string
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 ¶
func (e GitPushEventRequestValidationError) Cause() error
Cause function returns cause value.
func (GitPushEventRequestValidationError) Error ¶
func (e GitPushEventRequestValidationError) Error() string
Error satisfies the builtin error interface
func (GitPushEventRequestValidationError) ErrorName ¶
func (e GitPushEventRequestValidationError) ErrorName() string
ErrorName returns error name.
func (GitPushEventRequestValidationError) Field ¶
func (e GitPushEventRequestValidationError) Field() string
Field function returns field value.
func (GitPushEventRequestValidationError) Key ¶
func (e GitPushEventRequestValidationError) Key() bool
Key function returns key value.
func (GitPushEventRequestValidationError) Reason ¶
func (e GitPushEventRequestValidationError) Reason() string
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 ¶
func (m GitPushEventResponseMultiError) Error() string
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 ¶
func (e GitPushEventResponseValidationError) Cause() error
Cause function returns cause value.
func (GitPushEventResponseValidationError) Error ¶
func (e GitPushEventResponseValidationError) Error() string
Error satisfies the builtin error interface
func (GitPushEventResponseValidationError) ErrorName ¶
func (e GitPushEventResponseValidationError) ErrorName() string
ErrorName returns error name.
func (GitPushEventResponseValidationError) Field ¶
func (e GitPushEventResponseValidationError) Field() string
Field function returns field value.
func (GitPushEventResponseValidationError) Key ¶
func (e GitPushEventResponseValidationError) Key() bool
Key function returns key value.
func (GitPushEventResponseValidationError) Reason ¶
func (e GitPushEventResponseValidationError) Reason() string
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.
func NewNotificationsClient ¶
func NewNotificationsClient(cc grpc.ClientConnInterface) NotificationsClient
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 ¶
func (UnimplementedNotificationsServer) GitPushEvent(context.Context, *GitPushEventRequest) (*GitPushEventResponse, error)
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.