rpc

package
v19.0.0 Latest Latest
Warning

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

Go to latest
Published: May 21, 2026 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EventsPlatform_Publish_FullMethodName   = "/gitlab.agent.events_platform.rpc.EventsPlatform/Publish"
	EventsPlatform_Subscribe_FullMethodName = "/gitlab.agent.events_platform.rpc.EventsPlatform/Subscribe"
)

Variables

View Source
var EventsPlatform_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "gitlab.agent.events_platform.rpc.EventsPlatform",
	HandlerType: (*EventsPlatformServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "Publish",
			Handler:    _EventsPlatform_Publish_Handler,
		},
	},
	Streams: []grpc.StreamDesc{
		{
			StreamName:    "Subscribe",
			Handler:       _EventsPlatform_Subscribe_Handler,
			ServerStreams: true,
			ClientStreams: true,
		},
	},
	Metadata: "internal/module/events_platform/rpc/rpc.proto",
}

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

View Source
var File_internal_module_events_platform_rpc_rpc_proto protoreflect.FileDescriptor

Functions

func RegisterEventsPlatformServer

func RegisterEventsPlatformServer(s grpc.ServiceRegistrar, srv EventsPlatformServer)

Types

type Ack

type Ack struct {
	MessageIds []string `protobuf:"bytes,1,rep,name=message_ids" json:"message_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*Ack) Descriptor deprecated

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

Deprecated: Use Ack.ProtoReflect.Descriptor instead.

func (*Ack) GetMessageIds

func (x *Ack) GetMessageIds() []string

func (*Ack) ProtoMessage

func (*Ack) ProtoMessage()

func (*Ack) ProtoReflect

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

func (*Ack) Reset

func (x *Ack) Reset()

func (*Ack) String

func (x *Ack) String() string

type EventsPlatformClient

type EventsPlatformClient interface {
	Publish(ctx context.Context, in *PublishRequest, opts ...grpc.CallOption) (*PublishResponse, error)
	Subscribe(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[SubscribeRequest, SubscribeResponse], error)
}

EventsPlatformClient is the client API for EventsPlatform 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 EventsPlatformServer

type EventsPlatformServer interface {
	Publish(context.Context, *PublishRequest) (*PublishResponse, error)
	Subscribe(grpc.BidiStreamingServer[SubscribeRequest, SubscribeResponse]) error
	// contains filtered or unexported methods
}

EventsPlatformServer is the server API for EventsPlatform service. All implementations must embed UnimplementedEventsPlatformServer for forward compatibility.

type EventsPlatform_SubscribeClient

type EventsPlatform_SubscribeClient = grpc.BidiStreamingClient[SubscribeRequest, SubscribeResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type EventsPlatform_SubscribeServer

type EventsPlatform_SubscribeServer = grpc.BidiStreamingServer[SubscribeRequest, SubscribeResponse]

This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.

type PublishRequest

type PublishRequest struct {
	Topic  string              `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	Events []*event.CloudEvent `protobuf:"bytes,2,rep,name=events" json:"events,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishRequest) Descriptor deprecated

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

Deprecated: Use PublishRequest.ProtoReflect.Descriptor instead.

func (*PublishRequest) GetEvents

func (x *PublishRequest) GetEvents() []*event.CloudEvent

func (*PublishRequest) GetTopic

func (x *PublishRequest) GetTopic() string

func (*PublishRequest) ProtoMessage

func (*PublishRequest) ProtoMessage()

func (*PublishRequest) ProtoReflect

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

func (*PublishRequest) Reset

func (x *PublishRequest) Reset()

func (*PublishRequest) String

func (x *PublishRequest) String() string

type PublishResponse

type PublishResponse struct {
	MessageIds []string `protobuf:"bytes,1,rep,name=message_ids" json:"message_ids,omitempty"`
	// contains filtered or unexported fields
}

func (*PublishResponse) Descriptor deprecated

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

Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.

func (*PublishResponse) GetMessageIds

func (x *PublishResponse) GetMessageIds() []string

func (*PublishResponse) ProtoMessage

func (*PublishResponse) ProtoMessage()

func (*PublishResponse) ProtoReflect

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

func (*PublishResponse) Reset

func (x *PublishResponse) Reset()

func (*PublishResponse) String

func (x *PublishResponse) String() string

type SubscribeConfig

type SubscribeConfig struct {
	Topic         string   `protobuf:"bytes,1,opt,name=topic" json:"topic,omitempty"`
	ConsumerGroup string   `protobuf:"bytes,2,opt,name=consumer_group" json:"consumer_group,omitempty"`
	EventTypes    []string `protobuf:"bytes,3,rep,name=event_types" json:"event_types,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeConfig) Descriptor deprecated

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

Deprecated: Use SubscribeConfig.ProtoReflect.Descriptor instead.

func (*SubscribeConfig) GetConsumerGroup

func (x *SubscribeConfig) GetConsumerGroup() string

func (*SubscribeConfig) GetEventTypes

func (x *SubscribeConfig) GetEventTypes() []string

func (*SubscribeConfig) GetTopic

func (x *SubscribeConfig) GetTopic() string

func (*SubscribeConfig) ProtoMessage

func (*SubscribeConfig) ProtoMessage()

func (*SubscribeConfig) ProtoReflect

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

func (*SubscribeConfig) Reset

func (x *SubscribeConfig) Reset()

func (*SubscribeConfig) String

func (x *SubscribeConfig) String() string

type SubscribeRequest

type SubscribeRequest struct {

	// Types that are valid to be assigned to Request:
	//
	//	*SubscribeRequest_Config
	//	*SubscribeRequest_Ack
	Request isSubscribeRequest_Request `protobuf_oneof:"request"`
	// contains filtered or unexported fields
}

func (*SubscribeRequest) Descriptor deprecated

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

Deprecated: Use SubscribeRequest.ProtoReflect.Descriptor instead.

func (*SubscribeRequest) GetAck

func (x *SubscribeRequest) GetAck() *Ack

func (*SubscribeRequest) GetConfig

func (x *SubscribeRequest) GetConfig() *SubscribeConfig

func (*SubscribeRequest) GetRequest

func (x *SubscribeRequest) GetRequest() isSubscribeRequest_Request

func (*SubscribeRequest) ProtoMessage

func (*SubscribeRequest) ProtoMessage()

func (*SubscribeRequest) ProtoReflect

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

func (*SubscribeRequest) Reset

func (x *SubscribeRequest) Reset()

func (*SubscribeRequest) String

func (x *SubscribeRequest) String() string

type SubscribeRequest_Ack

type SubscribeRequest_Ack struct {
	Ack *Ack `protobuf:"bytes,2,opt,name=ack,oneof"`
}

type SubscribeRequest_Config

type SubscribeRequest_Config struct {
	Config *SubscribeConfig `protobuf:"bytes,1,opt,name=config,oneof"`
}

type SubscribeResponse

type SubscribeResponse struct {
	Event     *event.CloudEvent `protobuf:"bytes,1,opt,name=event" json:"event,omitempty"`
	MessageId string            `protobuf:"bytes,2,opt,name=message_id" json:"message_id,omitempty"`
	// contains filtered or unexported fields
}

func (*SubscribeResponse) Descriptor deprecated

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

Deprecated: Use SubscribeResponse.ProtoReflect.Descriptor instead.

func (*SubscribeResponse) GetEvent

func (x *SubscribeResponse) GetEvent() *event.CloudEvent

func (*SubscribeResponse) GetMessageId

func (x *SubscribeResponse) GetMessageId() string

func (*SubscribeResponse) ProtoMessage

func (*SubscribeResponse) ProtoMessage()

func (*SubscribeResponse) ProtoReflect

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

func (*SubscribeResponse) Reset

func (x *SubscribeResponse) Reset()

func (*SubscribeResponse) String

func (x *SubscribeResponse) String() string

type UnimplementedEventsPlatformServer

type UnimplementedEventsPlatformServer struct{}

UnimplementedEventsPlatformServer 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.

func (UnimplementedEventsPlatformServer) Publish

func (UnimplementedEventsPlatformServer) Subscribe

type UnsafeEventsPlatformServer

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

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

Jump to

Keyboard shortcuts

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