Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterChipIngressServer(s grpc.ServiceRegistrar, srv ChipIngressServer)
- type ChipIngressClient
- type ChipIngressServer
- type ChipIngress_StreamEventsClient
- type ChipIngress_StreamEventsServer
- type CloudEventBatch
- type EmptyRequest
- type MetaData
- type Path
- type PathType
- type PingResponse
- type PublishResponse
- type PublishResult
- type RegisterSchemaRequest
- func (*RegisterSchemaRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterSchemaRequest) GetSchemas() []*Schema
- func (*RegisterSchemaRequest) ProtoMessage()
- func (x *RegisterSchemaRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterSchemaRequest) Reset()
- func (x *RegisterSchemaRequest) String() string
- type RegisterSchemaResponse
- func (*RegisterSchemaResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterSchemaResponse) GetRegistered() []*RegisteredSchema
- func (*RegisterSchemaResponse) ProtoMessage()
- func (x *RegisterSchemaResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterSchemaResponse) Reset()
- func (x *RegisterSchemaResponse) String() string
- type RegisteredSchema
- func (*RegisteredSchema) Descriptor() ([]byte, []int)deprecated
- func (x *RegisteredSchema) GetSubject() string
- func (x *RegisteredSchema) GetVersion() int32
- func (*RegisteredSchema) ProtoMessage()
- func (x *RegisteredSchema) ProtoReflect() protoreflect.Message
- func (x *RegisteredSchema) Reset()
- func (x *RegisteredSchema) String() string
- type Schema
- func (*Schema) Descriptor() ([]byte, []int)deprecated
- func (x *Schema) GetFormat() SchemaType
- func (x *Schema) GetMetadata() *MetaData
- func (x *Schema) GetPath() *Path
- func (x *Schema) GetReferences() []*SchemaReference
- func (x *Schema) GetSchema() string
- func (x *Schema) GetSubject() string
- func (*Schema) ProtoMessage()
- func (x *Schema) ProtoReflect() protoreflect.Message
- func (x *Schema) Reset()
- func (x *Schema) String() string
- type SchemaReference
- func (*SchemaReference) Descriptor() ([]byte, []int)deprecated
- func (x *SchemaReference) GetName() string
- func (x *SchemaReference) GetSubject() string
- func (x *SchemaReference) GetVersion() int32
- func (*SchemaReference) ProtoMessage()
- func (x *SchemaReference) ProtoReflect() protoreflect.Message
- func (x *SchemaReference) Reset()
- func (x *SchemaReference) String() string
- type SchemaType
- type Store
- type StreamEventsRequest
- func (*StreamEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StreamEventsRequest) GetEvent() *pb.CloudEvent
- func (*StreamEventsRequest) ProtoMessage()
- func (x *StreamEventsRequest) ProtoReflect() protoreflect.Message
- func (x *StreamEventsRequest) Reset()
- func (x *StreamEventsRequest) String() string
- type StreamEventsResponse
- func (*StreamEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StreamEventsResponse) GetEventId() string
- func (x *StreamEventsResponse) GetStatus() string
- func (*StreamEventsResponse) ProtoMessage()
- func (x *StreamEventsResponse) ProtoReflect() protoreflect.Message
- func (x *StreamEventsResponse) Reset()
- func (x *StreamEventsResponse) String() string
- type UnimplementedChipIngressServer
- func (UnimplementedChipIngressServer) Ping(context.Context, *EmptyRequest) (*PingResponse, error)
- func (UnimplementedChipIngressServer) Publish(context.Context, *pb.CloudEvent) (*PublishResponse, error)
- func (UnimplementedChipIngressServer) PublishBatch(context.Context, *CloudEventBatch) (*PublishResponse, error)
- func (UnimplementedChipIngressServer) RegisterSchema(context.Context, *RegisterSchemaRequest) (*RegisterSchemaResponse, error)
- func (UnimplementedChipIngressServer) StreamEvents(grpc.BidiStreamingServer[StreamEventsRequest, StreamEventsResponse]) error
- type UnsafeChipIngressServer
Constants ¶
const ( ChipIngress_Publish_FullMethodName = "/chipingress.pb.ChipIngress/Publish" ChipIngress_PublishBatch_FullMethodName = "/chipingress.pb.ChipIngress/PublishBatch" ChipIngress_Ping_FullMethodName = "/chipingress.pb.ChipIngress/Ping" ChipIngress_StreamEvents_FullMethodName = "/chipingress.pb.ChipIngress/StreamEvents" ChipIngress_RegisterSchema_FullMethodName = "/chipingress.pb.ChipIngress/RegisterSchema" )
Variables ¶
var ( SchemaType_name = map[int32]string{ 0: "PROTOBUF", 1: "AVRO", 2: "JSON", } SchemaType_value = map[string]int32{ "PROTOBUF": 0, "AVRO": 1, "JSON": 2, } )
Enum value maps for SchemaType.
var ( PathType_name = map[int32]string{ 0: "S3", 1: "LOCAL", 3: "GITHUB", 4: "OTHER", } PathType_value = map[string]int32{ "S3": 0, "LOCAL": 1, "GITHUB": 3, "OTHER": 4, } )
Enum value maps for PathType.
var ChipIngress_ServiceDesc = grpc.ServiceDesc{ ServiceName: "chipingress.pb.ChipIngress", HandlerType: (*ChipIngressServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Publish", Handler: _ChipIngress_Publish_Handler, }, { MethodName: "PublishBatch", Handler: _ChipIngress_PublishBatch_Handler, }, { MethodName: "Ping", Handler: _ChipIngress_Ping_Handler, }, { MethodName: "RegisterSchema", Handler: _ChipIngress_RegisterSchema_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "StreamEvents", Handler: _ChipIngress_StreamEvents_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "pb/chip_ingress.proto", }
ChipIngress_ServiceDesc is the grpc.ServiceDesc for ChipIngress service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pb_chip_common_proto protoreflect.FileDescriptor
var File_pb_chip_ingress_proto protoreflect.FileDescriptor
Functions ¶
func RegisterChipIngressServer ¶
func RegisterChipIngressServer(s grpc.ServiceRegistrar, srv ChipIngressServer)
Types ¶
type ChipIngressClient ¶
type ChipIngressClient interface {
// Publish sends a single CloudEvent to the ChipIngress service.
Publish(ctx context.Context, in *pb.CloudEvent, opts ...grpc.CallOption) (*PublishResponse, error)
// PublishBatch sends a batch of CloudEvents to the ChipIngress service.
// This method is atomic, meaning it will either succeed or fail for the entire batch.
// When the server receives a batch of events, it will open a kafka transaction, and begin producing each event sequentially in order received.
// If any 1 message fails, all previous messages in the same batch that were already produced won't be marked as committed,
// and the server will respond with an error.
// Consumers can set isolation.level=read_committed to only read committed records
PublishBatch(ctx context.Context, in *CloudEventBatch, opts ...grpc.CallOption) (*PublishResponse, error)
// Ping sends a request to the ChipIngress service to check if it is alive.
Ping(ctx context.Context, in *EmptyRequest, opts ...grpc.CallOption) (*PingResponse, error)
// StreamEvents; EXPERIMENTAL ~ allows clients to stream CloudEvents to the server.
// This API is experimental and may change in the future.
StreamEvents(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[StreamEventsRequest, StreamEventsResponse], error)
// RegisterSchema allows registering one or more schemas that define the structure of CloudEvent data.
RegisterSchema(ctx context.Context, in *RegisterSchemaRequest, opts ...grpc.CallOption) (*RegisterSchemaResponse, error)
}
ChipIngressClient is the client API for ChipIngress 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.
ChipIngress service provides a way for senders to produce CloudEvents messages to Kafka
func NewChipIngressClient ¶
func NewChipIngressClient(cc grpc.ClientConnInterface) ChipIngressClient
type ChipIngressServer ¶
type ChipIngressServer interface {
// Publish sends a single CloudEvent to the ChipIngress service.
Publish(context.Context, *pb.CloudEvent) (*PublishResponse, error)
// PublishBatch sends a batch of CloudEvents to the ChipIngress service.
// This method is atomic, meaning it will either succeed or fail for the entire batch.
// When the server receives a batch of events, it will open a kafka transaction, and begin producing each event sequentially in order received.
// If any 1 message fails, all previous messages in the same batch that were already produced won't be marked as committed,
// and the server will respond with an error.
// Consumers can set isolation.level=read_committed to only read committed records
PublishBatch(context.Context, *CloudEventBatch) (*PublishResponse, error)
// Ping sends a request to the ChipIngress service to check if it is alive.
Ping(context.Context, *EmptyRequest) (*PingResponse, error)
// StreamEvents; EXPERIMENTAL ~ allows clients to stream CloudEvents to the server.
// This API is experimental and may change in the future.
StreamEvents(grpc.BidiStreamingServer[StreamEventsRequest, StreamEventsResponse]) error
// RegisterSchema allows registering one or more schemas that define the structure of CloudEvent data.
RegisterSchema(context.Context, *RegisterSchemaRequest) (*RegisterSchemaResponse, error)
// contains filtered or unexported methods
}
ChipIngressServer is the server API for ChipIngress service. All implementations must embed UnimplementedChipIngressServer for forward compatibility.
ChipIngress service provides a way for senders to produce CloudEvents messages to Kafka
type ChipIngress_StreamEventsClient ¶
type ChipIngress_StreamEventsClient = grpc.BidiStreamingClient[StreamEventsRequest, StreamEventsResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type ChipIngress_StreamEventsServer ¶
type ChipIngress_StreamEventsServer = grpc.BidiStreamingServer[StreamEventsRequest, StreamEventsResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type CloudEventBatch ¶
type CloudEventBatch struct {
Events []*pb.CloudEvent `protobuf:"bytes,1,rep,name=events,proto3" json:"events,omitempty"`
// contains filtered or unexported fields
}
CloudEventBatch is used to send many ChipIngress
func (*CloudEventBatch) Descriptor
deprecated
func (*CloudEventBatch) Descriptor() ([]byte, []int)
Deprecated: Use CloudEventBatch.ProtoReflect.Descriptor instead.
func (*CloudEventBatch) GetEvents ¶
func (x *CloudEventBatch) GetEvents() []*pb.CloudEvent
func (*CloudEventBatch) ProtoMessage ¶
func (*CloudEventBatch) ProtoMessage()
func (*CloudEventBatch) ProtoReflect ¶
func (x *CloudEventBatch) ProtoReflect() protoreflect.Message
func (*CloudEventBatch) Reset ¶
func (x *CloudEventBatch) Reset()
func (*CloudEventBatch) String ¶
func (x *CloudEventBatch) String() string
type EmptyRequest ¶
type EmptyRequest struct {
// contains filtered or unexported fields
}
EmptyRequest is just an empty request
func (*EmptyRequest) Descriptor
deprecated
func (*EmptyRequest) Descriptor() ([]byte, []int)
Deprecated: Use EmptyRequest.ProtoReflect.Descriptor instead.
func (*EmptyRequest) ProtoMessage ¶
func (*EmptyRequest) ProtoMessage()
func (*EmptyRequest) ProtoReflect ¶
func (x *EmptyRequest) ProtoReflect() protoreflect.Message
func (*EmptyRequest) Reset ¶
func (x *EmptyRequest) Reset()
func (*EmptyRequest) String ¶
func (x *EmptyRequest) String() string
type MetaData ¶ added in v0.0.4
type MetaData struct {
Stores map[string]*Store `` // List of datastores the schema should be stored in. Map of store (hot, cold or warm) to Store objects.
/* 139-byte string literal not displayed */
// contains filtered or unexported fields
}
Metadata for the schema, currently includes storage information
func (*MetaData) Descriptor
deprecated
added in
v0.0.4
func (*MetaData) ProtoMessage ¶ added in v0.0.4
func (*MetaData) ProtoMessage()
func (*MetaData) ProtoReflect ¶ added in v0.0.4
func (x *MetaData) ProtoReflect() protoreflect.Message
type Path ¶ added in v0.0.4
type Path struct {
Path string `protobuf:"bytes,1,opt,name=path,proto3" json:"path,omitempty"` // S3 location or other storage path
Type PathType `protobuf:"varint,2,opt,name=type,proto3,enum=chip_common.PathType" json:"type,omitempty"` // Type of PATH storage (S3, LOCAL, OTHER)
// contains filtered or unexported fields
}
Path definition
func (*Path) Descriptor
deprecated
added in
v0.0.4
func (*Path) ProtoMessage ¶ added in v0.0.4
func (*Path) ProtoMessage()
func (*Path) ProtoReflect ¶ added in v0.0.4
func (x *Path) ProtoReflect() protoreflect.Message
type PathType ¶ added in v0.0.4
type PathType int32
Enum for different path types
func (PathType) Descriptor ¶ added in v0.0.4
func (PathType) Descriptor() protoreflect.EnumDescriptor
func (PathType) EnumDescriptor
deprecated
added in
v0.0.4
func (PathType) Number ¶ added in v0.0.4
func (x PathType) Number() protoreflect.EnumNumber
func (PathType) Type ¶ added in v0.0.4
func (PathType) Type() protoreflect.EnumType
type PingResponse ¶
type PingResponse struct {
Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
// contains filtered or unexported fields
}
PingResponse responds to pings
func (*PingResponse) Descriptor
deprecated
func (*PingResponse) Descriptor() ([]byte, []int)
Deprecated: Use PingResponse.ProtoReflect.Descriptor instead.
func (*PingResponse) GetMessage ¶
func (x *PingResponse) GetMessage() string
func (*PingResponse) ProtoMessage ¶
func (*PingResponse) ProtoMessage()
func (*PingResponse) ProtoReflect ¶
func (x *PingResponse) ProtoReflect() protoreflect.Message
func (*PingResponse) Reset ¶
func (x *PingResponse) Reset()
func (*PingResponse) String ¶
func (x *PingResponse) String() string
type PublishResponse ¶
type PublishResponse struct {
Results []*PublishResult `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"`
// contains filtered or unexported fields
}
func (*PublishResponse) Descriptor
deprecated
func (*PublishResponse) Descriptor() ([]byte, []int)
Deprecated: Use PublishResponse.ProtoReflect.Descriptor instead.
func (*PublishResponse) GetResults ¶
func (x *PublishResponse) GetResults() []*PublishResult
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 PublishResult ¶
type PublishResult struct {
EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
// contains filtered or unexported fields
}
func (*PublishResult) Descriptor
deprecated
func (*PublishResult) Descriptor() ([]byte, []int)
Deprecated: Use PublishResult.ProtoReflect.Descriptor instead.
func (*PublishResult) GetEventId ¶
func (x *PublishResult) GetEventId() string
func (*PublishResult) ProtoMessage ¶
func (*PublishResult) ProtoMessage()
func (*PublishResult) ProtoReflect ¶
func (x *PublishResult) ProtoReflect() protoreflect.Message
func (*PublishResult) Reset ¶
func (x *PublishResult) Reset()
func (*PublishResult) String ¶
func (x *PublishResult) String() string
type RegisterSchemaRequest ¶ added in v0.0.4
type RegisterSchemaRequest struct {
Schemas []*Schema `protobuf:"bytes,1,rep,name=schemas,proto3" json:"schemas,omitempty"`
// contains filtered or unexported fields
}
RegisterSchema request message
func (*RegisterSchemaRequest) Descriptor
deprecated
added in
v0.0.4
func (*RegisterSchemaRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterSchemaRequest.ProtoReflect.Descriptor instead.
func (*RegisterSchemaRequest) GetSchemas ¶ added in v0.0.4
func (x *RegisterSchemaRequest) GetSchemas() []*Schema
func (*RegisterSchemaRequest) ProtoMessage ¶ added in v0.0.4
func (*RegisterSchemaRequest) ProtoMessage()
func (*RegisterSchemaRequest) ProtoReflect ¶ added in v0.0.4
func (x *RegisterSchemaRequest) ProtoReflect() protoreflect.Message
func (*RegisterSchemaRequest) Reset ¶ added in v0.0.4
func (x *RegisterSchemaRequest) Reset()
func (*RegisterSchemaRequest) String ¶ added in v0.0.4
func (x *RegisterSchemaRequest) String() string
type RegisterSchemaResponse ¶ added in v0.0.4
type RegisterSchemaResponse struct {
Registered []*RegisteredSchema `protobuf:"bytes,1,rep,name=registered,proto3" json:"registered,omitempty"` // List of registered schema subjects
// contains filtered or unexported fields
}
RegisterSchema response message
func (*RegisterSchemaResponse) Descriptor
deprecated
added in
v0.0.4
func (*RegisterSchemaResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterSchemaResponse.ProtoReflect.Descriptor instead.
func (*RegisterSchemaResponse) GetRegistered ¶ added in v0.0.4
func (x *RegisterSchemaResponse) GetRegistered() []*RegisteredSchema
func (*RegisterSchemaResponse) ProtoMessage ¶ added in v0.0.4
func (*RegisterSchemaResponse) ProtoMessage()
func (*RegisterSchemaResponse) ProtoReflect ¶ added in v0.0.4
func (x *RegisterSchemaResponse) ProtoReflect() protoreflect.Message
func (*RegisterSchemaResponse) Reset ¶ added in v0.0.4
func (x *RegisterSchemaResponse) Reset()
func (*RegisterSchemaResponse) String ¶ added in v0.0.4
func (x *RegisterSchemaResponse) String() string
type RegisteredSchema ¶ added in v0.0.4
type RegisteredSchema struct {
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Version int32 `protobuf:"varint,2,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Response message for schema registration
func (*RegisteredSchema) Descriptor
deprecated
added in
v0.0.4
func (*RegisteredSchema) Descriptor() ([]byte, []int)
Deprecated: Use RegisteredSchema.ProtoReflect.Descriptor instead.
func (*RegisteredSchema) GetSubject ¶ added in v0.0.4
func (x *RegisteredSchema) GetSubject() string
func (*RegisteredSchema) GetVersion ¶ added in v0.0.4
func (x *RegisteredSchema) GetVersion() int32
func (*RegisteredSchema) ProtoMessage ¶ added in v0.0.4
func (*RegisteredSchema) ProtoMessage()
func (*RegisteredSchema) ProtoReflect ¶ added in v0.0.4
func (x *RegisteredSchema) ProtoReflect() protoreflect.Message
func (*RegisteredSchema) Reset ¶ added in v0.0.4
func (x *RegisteredSchema) Reset()
func (*RegisteredSchema) String ¶ added in v0.0.4
func (x *RegisteredSchema) String() string
type Schema ¶ added in v0.0.4
type Schema struct {
Subject string `protobuf:"bytes,1,opt,name=subject,proto3" json:"subject,omitempty"`
Path *Path `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // S3 location or other storage path
Format SchemaType `protobuf:"varint,4,opt,name=format,proto3,enum=chip_common.SchemaType" json:"format,omitempty"` // Format of the schema, e.g. PROTOBUF, AVRO, JSON
Schema string `protobuf:"bytes,5,opt,name=schema,proto3" json:"schema,omitempty"` // Raw proto/avro schema with annotations
References []*SchemaReference `protobuf:"bytes,6,rep,name=references,proto3" json:"references,omitempty"` // References to other schemas
Metadata *MetaData `protobuf:"bytes,7,opt,name=metadata,proto3" json:"metadata,omitempty"` // optional metadata information
// contains filtered or unexported fields
}
Schema definition
func (*Schema) Descriptor
deprecated
added in
v0.0.4
func (*Schema) GetFormat ¶ added in v0.0.4
func (x *Schema) GetFormat() SchemaType
func (*Schema) GetMetadata ¶ added in v0.0.4
func (*Schema) GetReferences ¶ added in v0.0.4
func (x *Schema) GetReferences() []*SchemaReference
func (*Schema) GetSubject ¶ added in v0.0.4
func (*Schema) ProtoMessage ¶ added in v0.0.4
func (*Schema) ProtoMessage()
func (*Schema) ProtoReflect ¶ added in v0.0.4
func (x *Schema) ProtoReflect() protoreflect.Message
type SchemaReference ¶ added in v0.0.4
type SchemaReference struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Subject string `protobuf:"bytes,2,opt,name=subject,proto3" json:"subject,omitempty"`
Version int32 `protobuf:"varint,3,opt,name=version,proto3" json:"version,omitempty"`
// contains filtered or unexported fields
}
Message to reference other schemas
func (*SchemaReference) Descriptor
deprecated
added in
v0.0.4
func (*SchemaReference) Descriptor() ([]byte, []int)
Deprecated: Use SchemaReference.ProtoReflect.Descriptor instead.
func (*SchemaReference) GetName ¶ added in v0.0.4
func (x *SchemaReference) GetName() string
func (*SchemaReference) GetSubject ¶ added in v0.0.4
func (x *SchemaReference) GetSubject() string
func (*SchemaReference) GetVersion ¶ added in v0.0.4
func (x *SchemaReference) GetVersion() int32
func (*SchemaReference) ProtoMessage ¶ added in v0.0.4
func (*SchemaReference) ProtoMessage()
func (*SchemaReference) ProtoReflect ¶ added in v0.0.4
func (x *SchemaReference) ProtoReflect() protoreflect.Message
func (*SchemaReference) Reset ¶ added in v0.0.4
func (x *SchemaReference) Reset()
func (*SchemaReference) String ¶ added in v0.0.4
func (x *SchemaReference) String() string
type SchemaType ¶ added in v0.0.4
type SchemaType int32
Enum for different schema types
const ( SchemaType_PROTOBUF SchemaType = 0 SchemaType_AVRO SchemaType = 1 SchemaType_JSON SchemaType = 2 )
func (SchemaType) Descriptor ¶ added in v0.0.4
func (SchemaType) Descriptor() protoreflect.EnumDescriptor
func (SchemaType) Enum ¶ added in v0.0.4
func (x SchemaType) Enum() *SchemaType
func (SchemaType) EnumDescriptor
deprecated
added in
v0.0.4
func (SchemaType) EnumDescriptor() ([]byte, []int)
Deprecated: Use SchemaType.Descriptor instead.
func (SchemaType) Number ¶ added in v0.0.4
func (x SchemaType) Number() protoreflect.EnumNumber
func (SchemaType) String ¶ added in v0.0.4
func (x SchemaType) String() string
func (SchemaType) Type ¶ added in v0.0.4
func (SchemaType) Type() protoreflect.EnumType
type Store ¶ added in v0.0.4
type Store struct {
Index []string `protobuf:"bytes,1,rep,name=index,proto3" json:"index,omitempty"`
Partition []string `protobuf:"bytes,2,rep,name=partition,proto3" json:"partition,omitempty"`
// contains filtered or unexported fields
}
Each store contains index and partition information
func (*Store) Descriptor
deprecated
added in
v0.0.4
func (*Store) GetPartition ¶ added in v0.0.4
func (*Store) ProtoMessage ¶ added in v0.0.4
func (*Store) ProtoMessage()
func (*Store) ProtoReflect ¶ added in v0.0.4
func (x *Store) ProtoReflect() protoreflect.Message
type StreamEventsRequest ¶
type StreamEventsRequest struct {
Event *pb.CloudEvent `protobuf:"bytes,1,opt,name=event,proto3" json:"event,omitempty"`
// contains filtered or unexported fields
}
Define request and response messages for the new streaming endpoint
func (*StreamEventsRequest) Descriptor
deprecated
func (*StreamEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use StreamEventsRequest.ProtoReflect.Descriptor instead.
func (*StreamEventsRequest) GetEvent ¶
func (x *StreamEventsRequest) GetEvent() *pb.CloudEvent
func (*StreamEventsRequest) ProtoMessage ¶
func (*StreamEventsRequest) ProtoMessage()
func (*StreamEventsRequest) ProtoReflect ¶
func (x *StreamEventsRequest) ProtoReflect() protoreflect.Message
func (*StreamEventsRequest) Reset ¶
func (x *StreamEventsRequest) Reset()
func (*StreamEventsRequest) String ¶
func (x *StreamEventsRequest) String() string
type StreamEventsResponse ¶
type StreamEventsResponse struct {
EventId string `protobuf:"bytes,1,opt,name=eventId,proto3" json:"eventId,omitempty"`
Status string `protobuf:"bytes,2,opt,name=status,proto3" json:"status,omitempty"` // e.g., "success", "error"
// contains filtered or unexported fields
}
func (*StreamEventsResponse) Descriptor
deprecated
func (*StreamEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use StreamEventsResponse.ProtoReflect.Descriptor instead.
func (*StreamEventsResponse) GetEventId ¶
func (x *StreamEventsResponse) GetEventId() string
func (*StreamEventsResponse) GetStatus ¶
func (x *StreamEventsResponse) GetStatus() string
func (*StreamEventsResponse) ProtoMessage ¶
func (*StreamEventsResponse) ProtoMessage()
func (*StreamEventsResponse) ProtoReflect ¶
func (x *StreamEventsResponse) ProtoReflect() protoreflect.Message
func (*StreamEventsResponse) Reset ¶
func (x *StreamEventsResponse) Reset()
func (*StreamEventsResponse) String ¶
func (x *StreamEventsResponse) String() string
type UnimplementedChipIngressServer ¶
type UnimplementedChipIngressServer struct{}
UnimplementedChipIngressServer 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 (UnimplementedChipIngressServer) Ping ¶
func (UnimplementedChipIngressServer) Ping(context.Context, *EmptyRequest) (*PingResponse, error)
func (UnimplementedChipIngressServer) Publish ¶
func (UnimplementedChipIngressServer) Publish(context.Context, *pb.CloudEvent) (*PublishResponse, error)
func (UnimplementedChipIngressServer) PublishBatch ¶
func (UnimplementedChipIngressServer) PublishBatch(context.Context, *CloudEventBatch) (*PublishResponse, error)
func (UnimplementedChipIngressServer) RegisterSchema ¶ added in v0.0.4
func (UnimplementedChipIngressServer) RegisterSchema(context.Context, *RegisterSchemaRequest) (*RegisterSchemaResponse, error)
func (UnimplementedChipIngressServer) StreamEvents ¶
func (UnimplementedChipIngressServer) StreamEvents(grpc.BidiStreamingServer[StreamEventsRequest, StreamEventsResponse]) error
type UnsafeChipIngressServer ¶
type UnsafeChipIngressServer interface {
// contains filtered or unexported methods
}
UnsafeChipIngressServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to ChipIngressServer will result in compilation errors.