kafkacloudevent

package
v1.0.8-benthos-in-go-r... Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2023 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KafkaCloudEventService_SubmitCloudEvents_FullMethodName = "/pkg.proto.kafkacloudevent.KafkaCloudEventService/SubmitCloudEvents"
)

Variables

View Source
var File_pkg_proto_kafkacloudevent_kafkacloudevent_proto protoreflect.FileDescriptor
View Source
var KafkaCloudEventService_ServiceDesc = grpc.ServiceDesc{
	ServiceName: "pkg.proto.kafkacloudevent.KafkaCloudEventService",
	HandlerType: (*KafkaCloudEventServiceServer)(nil),
	Methods: []grpc.MethodDesc{
		{
			MethodName: "SubmitCloudEvents",
			Handler:    _KafkaCloudEventService_SubmitCloudEvents_Handler,
		},
	},
	Streams:  []grpc.StreamDesc{},
	Metadata: "pkg/proto/kafkacloudevent/kafkacloudevent.proto",
}

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

Functions

func AddKafkaCloudEventServiceServer

func AddKafkaCloudEventServiceServer[T IKafkaCloudEventServiceServer](cb fluffy_dozm_di.ContainerBuilder, ctor any)

AddKafkaCloudEventServiceServer adds the fluffycore aware grpc server

func AddKafkaCloudEventServiceServerWithExternalRegistration

func AddKafkaCloudEventServiceServerWithExternalRegistration[T IKafkaCloudEventServiceServer](cb fluffy_dozm_di.ContainerBuilder, ctor any, register func() endpoint.IEndpointRegistration)

AddKafkaCloudEventServiceServerWithExternalRegistration adds the fluffycore aware grpc server and external registration service. Mainly used for grpc-gateway

func RegisterKafkaCloudEventServiceServer

func RegisterKafkaCloudEventServiceServer(s grpc.ServiceRegistrar, srv KafkaCloudEventServiceServer)

Types

type IKafkaCloudEventServiceServer

type IKafkaCloudEventServiceServer interface {
	KafkaCloudEventServiceServer
}

IKafkaCloudEventServiceServer defines the grpc server

type KafkaCloudEventServiceClient

type KafkaCloudEventServiceClient interface {
	// submits a batch of cloud events
	SubmitCloudEvents(ctx context.Context, in *SubmitCloudEventsRequest, opts ...grpc.CallOption) (*SubmitCloudEventsResponse, error)
}

KafkaCloudEventServiceClient is the client API for KafkaCloudEventService 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 KafkaCloudEventServiceFluffyCoreServer

KafkaCloudEventServiceFluffyCoreServer defines the grpc server truct

func (*KafkaCloudEventServiceFluffyCoreServer) Register

Register the server with grpc

func (*KafkaCloudEventServiceFluffyCoreServer) SubmitCloudEvents

SubmitCloudEvents...

type KafkaCloudEventServiceServer

type KafkaCloudEventServiceServer interface {
	// submits a batch of cloud events
	SubmitCloudEvents(context.Context, *SubmitCloudEventsRequest) (*SubmitCloudEventsResponse, error)
	// contains filtered or unexported methods
}

KafkaCloudEventServiceServer is the server API for KafkaCloudEventService service. All implementations must embed UnimplementedKafkaCloudEventServiceServer for forward compatibility

type SubmitCloudEventsRequest

type SubmitCloudEventsRequest struct {
	Batch *cloudevents.CloudEventBatch `protobuf:"bytes,1,opt,name=batch,proto3" json:"batch,omitempty"`
	// contains filtered or unexported fields
}

func (*SubmitCloudEventsRequest) Descriptor deprecated

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

Deprecated: Use SubmitCloudEventsRequest.ProtoReflect.Descriptor instead.

func (*SubmitCloudEventsRequest) GetBatch

func (*SubmitCloudEventsRequest) ProtoMessage

func (*SubmitCloudEventsRequest) ProtoMessage()

func (*SubmitCloudEventsRequest) ProtoReflect

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

func (*SubmitCloudEventsRequest) Reset

func (x *SubmitCloudEventsRequest) Reset()

func (*SubmitCloudEventsRequest) String

func (x *SubmitCloudEventsRequest) String() string

type SubmitCloudEventsResponse

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

func (*SubmitCloudEventsResponse) Descriptor deprecated

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

Deprecated: Use SubmitCloudEventsResponse.ProtoReflect.Descriptor instead.

func (*SubmitCloudEventsResponse) ProtoMessage

func (*SubmitCloudEventsResponse) ProtoMessage()

func (*SubmitCloudEventsResponse) ProtoReflect

func (*SubmitCloudEventsResponse) Reset

func (x *SubmitCloudEventsResponse) Reset()

func (*SubmitCloudEventsResponse) String

func (x *SubmitCloudEventsResponse) String() string

type UnimplementedKafkaCloudEventServiceServer

type UnimplementedKafkaCloudEventServiceServer struct {
}

UnimplementedKafkaCloudEventServiceServer must be embedded to have forward compatible implementations.

func (UnimplementedKafkaCloudEventServiceServer) SubmitCloudEvents

type UnimplementedKafkaCloudEventServiceServerEndpointRegistration

type UnimplementedKafkaCloudEventServiceServerEndpointRegistration struct {
}

func (UnimplementedKafkaCloudEventServiceServerEndpointRegistration) RegisterHandler

type UnsafeKafkaCloudEventServiceServer

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

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

Jump to

Keyboard shortcuts

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