Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterFetchServiceServer(s grpc.ServiceRegistrar, srv FetchServiceServer)
- type AdvancedSearchOptions
- func (*AdvancedSearchOptions) Descriptor() ([]byte, []int)deprecated
- func (x *AdvancedSearchOptions) GetAfter() *timestamppb.Timestamp
- func (x *AdvancedSearchOptions) GetBefore() *timestamppb.Timestamp
- func (x *AdvancedSearchOptions) GetDataVersion() *StringFilterOption
- func (x *AdvancedSearchOptions) GetExtras() *StringFilterOption
- func (x *AdvancedSearchOptions) GetId() *StringFilterOption
- func (x *AdvancedSearchOptions) GetProducer() *StringFilterOption
- func (x *AdvancedSearchOptions) GetSource() *StringFilterOption
- func (x *AdvancedSearchOptions) GetSubject() *StringFilterOption
- func (x *AdvancedSearchOptions) GetTags() *ArrayFilterOption
- func (x *AdvancedSearchOptions) GetTimestampAsc() *wrapperspb.BoolValue
- func (x *AdvancedSearchOptions) GetType() *StringFilterOption
- func (*AdvancedSearchOptions) ProtoMessage()
- func (x *AdvancedSearchOptions) ProtoReflect() protoreflect.Message
- func (x *AdvancedSearchOptions) Reset()
- func (x *AdvancedSearchOptions) String() string
- type ArrayFilterOption
- func (*ArrayFilterOption) Descriptor() ([]byte, []int)deprecated
- func (x *ArrayFilterOption) GetContainsAll() []string
- func (x *ArrayFilterOption) GetContainsAny() []string
- func (x *ArrayFilterOption) GetNotContainsAll() []string
- func (x *ArrayFilterOption) GetNotContainsAny() []string
- func (x *ArrayFilterOption) GetOr() []*ArrayFilterOption
- func (*ArrayFilterOption) ProtoMessage()
- func (x *ArrayFilterOption) ProtoReflect() protoreflect.Message
- func (x *ArrayFilterOption) Reset()
- func (x *ArrayFilterOption) String() string
- type CloudEvent
- func (c *CloudEvent) AsCloudEvent() cloudevent.CloudEvent[json.RawMessage]
- func (*CloudEvent) Descriptor() ([]byte, []int)deprecated
- func (x *CloudEvent) GetData() []byte
- func (x *CloudEvent) GetHeader() *CloudEventHeader
- func (*CloudEvent) ProtoMessage()
- func (x *CloudEvent) ProtoReflect() protoreflect.Message
- func (x *CloudEvent) Reset()
- func (x *CloudEvent) String() string
- type CloudEventHeader
- func (c *CloudEventHeader) AsCloudEventHeader() cloudevent.CloudEventHeader
- func (*CloudEventHeader) Descriptor() ([]byte, []int)deprecated
- func (x *CloudEventHeader) GetDataContentType() string
- func (x *CloudEventHeader) GetDataSchema() string
- func (x *CloudEventHeader) GetDataVersion() string
- func (x *CloudEventHeader) GetExtras() map[string][]byte
- func (x *CloudEventHeader) GetId() string
- func (x *CloudEventHeader) GetProducer() string
- func (x *CloudEventHeader) GetSignature() string
- func (x *CloudEventHeader) GetSource() string
- func (x *CloudEventHeader) GetSpecVersion() string
- func (x *CloudEventHeader) GetSubject() string
- func (x *CloudEventHeader) GetTags() []string
- func (x *CloudEventHeader) GetTime() *timestamppb.Timestamp
- func (x *CloudEventHeader) GetType() string
- func (*CloudEventHeader) ProtoMessage()
- func (x *CloudEventHeader) ProtoReflect() protoreflect.Message
- func (x *CloudEventHeader) Reset()
- func (x *CloudEventHeader) String() string
- type CloudEventIndex
- func (*CloudEventIndex) Descriptor() ([]byte, []int)deprecated
- func (x *CloudEventIndex) GetData() *ObjectInfo
- func (x *CloudEventIndex) GetHeader() *CloudEventHeader
- func (*CloudEventIndex) ProtoMessage()
- func (x *CloudEventIndex) ProtoReflect() protoreflect.Message
- func (x *CloudEventIndex) Reset()
- func (x *CloudEventIndex) String() string
- type FetchServiceClient
- type FetchServiceServer
- type GetLatestCloudEventRequest
- func (*GetLatestCloudEventRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestCloudEventRequest) GetAdvancedOptions() *AdvancedSearchOptions
- func (x *GetLatestCloudEventRequest) GetOptions() *SearchOptions
- func (*GetLatestCloudEventRequest) ProtoMessage()
- func (x *GetLatestCloudEventRequest) ProtoReflect() protoreflect.Message
- func (x *GetLatestCloudEventRequest) Reset()
- func (x *GetLatestCloudEventRequest) String() string
- type GetLatestCloudEventResponse
- func (*GetLatestCloudEventResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestCloudEventResponse) GetCloudEvent() *CloudEvent
- func (*GetLatestCloudEventResponse) ProtoMessage()
- func (x *GetLatestCloudEventResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestCloudEventResponse) Reset()
- func (x *GetLatestCloudEventResponse) String() string
- type GetLatestIndexRequest
- func (*GetLatestIndexRequest) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestIndexRequest) GetAdvancedOptions() *AdvancedSearchOptions
- func (x *GetLatestIndexRequest) GetOptions() *SearchOptions
- func (*GetLatestIndexRequest) ProtoMessage()
- func (x *GetLatestIndexRequest) ProtoReflect() protoreflect.Message
- func (x *GetLatestIndexRequest) Reset()
- func (x *GetLatestIndexRequest) String() string
- type GetLatestIndexResponse
- func (*GetLatestIndexResponse) Descriptor() ([]byte, []int)deprecated
- func (x *GetLatestIndexResponse) GetIndex() *CloudEventIndex
- func (*GetLatestIndexResponse) ProtoMessage()
- func (x *GetLatestIndexResponse) ProtoReflect() protoreflect.Message
- func (x *GetLatestIndexResponse) Reset()
- func (x *GetLatestIndexResponse) String() string
- type ListCloudEventsFromKeysRequest
- func (*ListCloudEventsFromKeysRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudEventsFromKeysRequest) GetIndexes() []*CloudEventIndex
- func (*ListCloudEventsFromKeysRequest) ProtoMessage()
- func (x *ListCloudEventsFromKeysRequest) ProtoReflect() protoreflect.Message
- func (x *ListCloudEventsFromKeysRequest) Reset()
- func (x *ListCloudEventsFromKeysRequest) String() string
- type ListCloudEventsFromKeysResponse
- func (*ListCloudEventsFromKeysResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudEventsFromKeysResponse) GetCloudEvents() []*CloudEvent
- func (*ListCloudEventsFromKeysResponse) ProtoMessage()
- func (x *ListCloudEventsFromKeysResponse) ProtoReflect() protoreflect.Message
- func (x *ListCloudEventsFromKeysResponse) Reset()
- func (x *ListCloudEventsFromKeysResponse) String() string
- type ListCloudEventsRequest
- func (*ListCloudEventsRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudEventsRequest) GetAdvancedOptions() *AdvancedSearchOptions
- func (x *ListCloudEventsRequest) GetLimit() int32
- func (x *ListCloudEventsRequest) GetOptions() *SearchOptions
- func (*ListCloudEventsRequest) ProtoMessage()
- func (x *ListCloudEventsRequest) ProtoReflect() protoreflect.Message
- func (x *ListCloudEventsRequest) Reset()
- func (x *ListCloudEventsRequest) String() string
- type ListCloudEventsResponse
- func (*ListCloudEventsResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListCloudEventsResponse) GetCloudEvents() []*CloudEvent
- func (*ListCloudEventsResponse) ProtoMessage()
- func (x *ListCloudEventsResponse) ProtoReflect() protoreflect.Message
- func (x *ListCloudEventsResponse) Reset()
- func (x *ListCloudEventsResponse) String() string
- type ListIndexesRequest
- func (*ListIndexesRequest) Descriptor() ([]byte, []int)deprecated
- func (x *ListIndexesRequest) GetAdvancedOptions() *AdvancedSearchOptions
- func (x *ListIndexesRequest) GetLimit() int32
- func (x *ListIndexesRequest) GetOptions() *SearchOptions
- func (*ListIndexesRequest) ProtoMessage()
- func (x *ListIndexesRequest) ProtoReflect() protoreflect.Message
- func (x *ListIndexesRequest) Reset()
- func (x *ListIndexesRequest) String() string
- type ListIndexesResponse
- func (*ListIndexesResponse) Descriptor() ([]byte, []int)deprecated
- func (x *ListIndexesResponse) GetIndexes() []*CloudEventIndex
- func (*ListIndexesResponse) ProtoMessage()
- func (x *ListIndexesResponse) ProtoReflect() protoreflect.Message
- func (x *ListIndexesResponse) Reset()
- func (x *ListIndexesResponse) String() string
- type ObjectInfo
- type SearchOptions
- func (*SearchOptions) Descriptor() ([]byte, []int)deprecated
- func (x *SearchOptions) GetAfter() *timestamppb.Timestamp
- func (x *SearchOptions) GetBefore() *timestamppb.Timestamp
- func (x *SearchOptions) GetDataVersion() *wrapperspb.StringValue
- func (x *SearchOptions) GetExtras() *wrapperspb.StringValue
- func (x *SearchOptions) GetId() *wrapperspb.StringValue
- func (x *SearchOptions) GetProducer() *wrapperspb.StringValue
- func (x *SearchOptions) GetSource() *wrapperspb.StringValue
- func (x *SearchOptions) GetSubject() *wrapperspb.StringValue
- func (x *SearchOptions) GetTimestampAsc() *wrapperspb.BoolValue
- func (x *SearchOptions) GetType() *wrapperspb.StringValue
- func (*SearchOptions) ProtoMessage()
- func (x *SearchOptions) ProtoReflect() protoreflect.Message
- func (x *SearchOptions) Reset()
- func (x *SearchOptions) String() string
- type StringFilterOption
- func (*StringFilterOption) Descriptor() ([]byte, []int)deprecated
- func (x *StringFilterOption) GetIn() []string
- func (x *StringFilterOption) GetNotIn() []string
- func (x *StringFilterOption) GetOr() []*StringFilterOption
- func (*StringFilterOption) ProtoMessage()
- func (x *StringFilterOption) ProtoReflect() protoreflect.Message
- func (x *StringFilterOption) Reset()
- func (x *StringFilterOption) String() string
- type UnimplementedFetchServiceServer
- func (UnimplementedFetchServiceServer) GetLatestCloudEvent(context.Context, *GetLatestCloudEventRequest) (*GetLatestCloudEventResponse, error)
- func (UnimplementedFetchServiceServer) GetLatestIndex(context.Context, *GetLatestIndexRequest) (*GetLatestIndexResponse, error)
- func (UnimplementedFetchServiceServer) ListCloudEvents(context.Context, *ListCloudEventsRequest) (*ListCloudEventsResponse, error)
- func (UnimplementedFetchServiceServer) ListCloudEventsFromIndex(context.Context, *ListCloudEventsFromKeysRequest) (*ListCloudEventsFromKeysResponse, error)
- func (UnimplementedFetchServiceServer) ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
- type UnsafeFetchServiceServer
Constants ¶
const ( FetchService_GetLatestIndex_FullMethodName = "/grpc.FetchService/GetLatestIndex" FetchService_ListIndexes_FullMethodName = "/grpc.FetchService/ListIndexes" FetchService_GetLatestCloudEvent_FullMethodName = "/grpc.FetchService/GetLatestCloudEvent" FetchService_ListCloudEvents_FullMethodName = "/grpc.FetchService/ListCloudEvents" FetchService_ListCloudEventsFromIndex_FullMethodName = "/grpc.FetchService/ListCloudEventsFromIndex" )
Variables ¶
var FetchService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "grpc.FetchService", HandlerType: (*FetchServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "GetLatestIndex", Handler: _FetchService_GetLatestIndex_Handler, }, { MethodName: "ListIndexes", Handler: _FetchService_ListIndexes_Handler, }, { MethodName: "GetLatestCloudEvent", Handler: _FetchService_GetLatestCloudEvent_Handler, }, { MethodName: "ListCloudEvents", Handler: _FetchService_ListCloudEvents_Handler, }, { MethodName: "ListCloudEventsFromIndex", Handler: _FetchService_ListCloudEventsFromIndex_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "pkg/grpc/fetch-api.proto", }
FetchService_ServiceDesc is the grpc.ServiceDesc for FetchService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_pkg_grpc_cloudevent_proto protoreflect.FileDescriptor
var File_pkg_grpc_fetch_api_proto protoreflect.FileDescriptor
Functions ¶
func RegisterFetchServiceServer ¶
func RegisterFetchServiceServer(s grpc.ServiceRegistrar, srv FetchServiceServer)
Types ¶
type AdvancedSearchOptions ¶ added in v0.0.14
type AdvancedSearchOptions struct {
// Only include events after this timestamp.
After *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"`
// Only include events before this timestamp.
Before *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
// Whether to sort results in ascending order by timestamp.
TimestampAsc *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=timestamp_asc,json=timestampAsc,proto3" json:"timestamp_asc,omitempty"`
// Advanced filtering for event type
Type *StringFilterOption `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
// Advanced filtering for data version
DataVersion *StringFilterOption `protobuf:"bytes,5,opt,name=data_version,json=dataVersion,proto3" json:"data_version,omitempty"`
// Advanced filtering for event subject
Subject *StringFilterOption `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
// Advanced filtering for source identifier
Source *StringFilterOption `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"`
// Advanced filtering for producer
Producer *StringFilterOption `protobuf:"bytes,9,opt,name=producer,proto3" json:"producer,omitempty"`
// Advanced filtering for extras (JSON string from cloud event header)
Extras *StringFilterOption `protobuf:"bytes,10,opt,name=extras,proto3" json:"extras,omitempty"`
// Advanced filtering for event ID
Id *StringFilterOption `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
// Tags are a list of tags that can be used to filter the events.
Tags *ArrayFilterOption `protobuf:"bytes,12,opt,name=tags,proto3" json:"tags,omitempty"`
// contains filtered or unexported fields
}
AdvancedSearchOptions provides flexible filtering options with boolean logic to narrow down search results. Each field can use complex filtering operations.
func (*AdvancedSearchOptions) Descriptor
deprecated
added in
v0.0.14
func (*AdvancedSearchOptions) Descriptor() ([]byte, []int)
Deprecated: Use AdvancedSearchOptions.ProtoReflect.Descriptor instead.
func (*AdvancedSearchOptions) GetAfter ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetAfter() *timestamppb.Timestamp
func (*AdvancedSearchOptions) GetBefore ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetBefore() *timestamppb.Timestamp
func (*AdvancedSearchOptions) GetDataVersion ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetDataVersion() *StringFilterOption
func (*AdvancedSearchOptions) GetExtras ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetExtras() *StringFilterOption
func (*AdvancedSearchOptions) GetId ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetId() *StringFilterOption
func (*AdvancedSearchOptions) GetProducer ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetProducer() *StringFilterOption
func (*AdvancedSearchOptions) GetSource ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetSource() *StringFilterOption
func (*AdvancedSearchOptions) GetSubject ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetSubject() *StringFilterOption
func (*AdvancedSearchOptions) GetTags ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetTags() *ArrayFilterOption
func (*AdvancedSearchOptions) GetTimestampAsc ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetTimestampAsc() *wrapperspb.BoolValue
func (*AdvancedSearchOptions) GetType ¶ added in v0.0.14
func (x *AdvancedSearchOptions) GetType() *StringFilterOption
func (*AdvancedSearchOptions) ProtoMessage ¶ added in v0.0.14
func (*AdvancedSearchOptions) ProtoMessage()
func (*AdvancedSearchOptions) ProtoReflect ¶ added in v0.0.14
func (x *AdvancedSearchOptions) ProtoReflect() protoreflect.Message
func (*AdvancedSearchOptions) Reset ¶ added in v0.0.14
func (x *AdvancedSearchOptions) Reset()
func (*AdvancedSearchOptions) String ¶ added in v0.0.14
func (x *AdvancedSearchOptions) String() string
type ArrayFilterOption ¶ added in v0.0.14
type ArrayFilterOption struct {
// Match if the field has any of these values.
ContainsAny []string `protobuf:"bytes,1,rep,name=contains_any,json=containsAny,proto3" json:"contains_any,omitempty"`
// Match if the field has all of these values.
ContainsAll []string `protobuf:"bytes,2,rep,name=contains_all,json=containsAll,proto3" json:"contains_all,omitempty"`
// Match if the field does not have any of these values.
NotContainsAny []string `protobuf:"bytes,3,rep,name=not_contains_any,json=notContainsAny,proto3" json:"not_contains_any,omitempty"`
// Match if the field does not have all of these values.
NotContainsAll []string `protobuf:"bytes,4,rep,name=not_contains_all,json=notContainsAll,proto3" json:"not_contains_all,omitempty"`
// Additional filter condition to combine with this one using OR logic.
Or []*ArrayFilterOption `protobuf:"bytes,5,rep,name=or,proto3" json:"or,omitempty"`
// contains filtered or unexported fields
}
FilterOption defines a flexible filtering option that can operate on a list of values every thing is implicitly ANDed together.
func (*ArrayFilterOption) Descriptor
deprecated
added in
v0.0.14
func (*ArrayFilterOption) Descriptor() ([]byte, []int)
Deprecated: Use ArrayFilterOption.ProtoReflect.Descriptor instead.
func (*ArrayFilterOption) GetContainsAll ¶ added in v0.0.14
func (x *ArrayFilterOption) GetContainsAll() []string
func (*ArrayFilterOption) GetContainsAny ¶ added in v0.0.14
func (x *ArrayFilterOption) GetContainsAny() []string
func (*ArrayFilterOption) GetNotContainsAll ¶ added in v0.0.14
func (x *ArrayFilterOption) GetNotContainsAll() []string
func (*ArrayFilterOption) GetNotContainsAny ¶ added in v0.0.14
func (x *ArrayFilterOption) GetNotContainsAny() []string
func (*ArrayFilterOption) GetOr ¶ added in v0.0.14
func (x *ArrayFilterOption) GetOr() []*ArrayFilterOption
func (*ArrayFilterOption) ProtoMessage ¶ added in v0.0.14
func (*ArrayFilterOption) ProtoMessage()
func (*ArrayFilterOption) ProtoReflect ¶ added in v0.0.14
func (x *ArrayFilterOption) ProtoReflect() protoreflect.Message
func (*ArrayFilterOption) Reset ¶ added in v0.0.14
func (x *ArrayFilterOption) Reset()
func (*ArrayFilterOption) String ¶ added in v0.0.14
func (x *ArrayFilterOption) String() string
type CloudEvent ¶ added in v0.0.3
type CloudEvent struct {
Header *CloudEventHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
CloudEvent represents a CloudEvent with a header and data.
func CloudEventToProto ¶ added in v0.0.15
func CloudEventToProto(event cloudevent.CloudEvent[json.RawMessage]) *CloudEvent
CloudEventToProto converts a cloudevent.CloudEvent[json.RawMessage] to a grpc.CloudEvent.
func (*CloudEvent) AsCloudEvent ¶ added in v0.0.3
func (c *CloudEvent) AsCloudEvent() cloudevent.CloudEvent[json.RawMessage]
AsCloudEvent converts the CloudEvent to a cloudevent.CloudEvent[json.RawMessage].
func (*CloudEvent) Descriptor
deprecated
added in
v0.0.3
func (*CloudEvent) Descriptor() ([]byte, []int)
Deprecated: Use CloudEvent.ProtoReflect.Descriptor instead.
func (*CloudEvent) GetData ¶ added in v0.0.3
func (x *CloudEvent) GetData() []byte
func (*CloudEvent) GetHeader ¶ added in v0.0.3
func (x *CloudEvent) GetHeader() *CloudEventHeader
func (*CloudEvent) ProtoMessage ¶ added in v0.0.3
func (*CloudEvent) ProtoMessage()
func (*CloudEvent) ProtoReflect ¶ added in v0.0.3
func (x *CloudEvent) ProtoReflect() protoreflect.Message
func (*CloudEvent) Reset ¶ added in v0.0.3
func (x *CloudEvent) Reset()
func (*CloudEvent) String ¶ added in v0.0.3
func (x *CloudEvent) String() string
type CloudEventHeader ¶ added in v0.0.3
type CloudEventHeader struct {
// ID is an identifier for the event. The combination of ID and Source must
// be unique.
Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
// Source is the context in which the event happened. In a distributed system it might consist of multiple Producers.
// Typically the 0x address.
Source string `protobuf:"bytes,2,opt,name=source,proto3" json:"source,omitempty"`
// Producer is a specific instance, process or device that creates the data structure describing the CloudEvent.
// Typically a DID of a nft.
Producer string `protobuf:"bytes,3,opt,name=producer,proto3" json:"producer,omitempty"`
// SpecVersion is the version of CloudEvents specification used.
// This is always hardcoded "1.0".
SpecVersion string `protobuf:"bytes,4,opt,name=spec_version,json=specVersion,proto3" json:"spec_version,omitempty"`
// Subject is an optional field identifying the subject of the event within
// the context of the event producer.
// Typically the DID of the nft.
Subject string `protobuf:"bytes,5,opt,name=subject,proto3" json:"subject,omitempty"`
// Time which the event occurred.
Time *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=time,proto3" json:"time,omitempty"`
// Type describes the type of event.
// Typically a one of the predefined DIMO types. (dimo.status, dimo.fingerprint, dimo.verfiabaleCredential...)
Type string `protobuf:"bytes,7,opt,name=type,proto3" json:"type,omitempty"`
// DataContentType is an optional MIME type for the data field. We almost
// always serialize to JSON and in that case this field is implicitly
// "application/json".
DataContentType string `protobuf:"bytes,8,opt,name=data_content_type,json=dataContentType,proto3" json:"data_content_type,omitempty"`
// DataSchema is an optional URI pointing to a schema for the data field.
DataSchema string `protobuf:"bytes,9,opt,name=data_schema,json=dataSchema,proto3" json:"data_schema,omitempty"`
// DataVersion is the controlled by the source of the event and is used to provide information about the data.
DataVersion string `protobuf:"bytes,10,opt,name=data_version,json=dataVersion,proto3" json:"data_version,omitempty"`
// Extras contains any additional fields that are not part of the CloudEvent excluding the data field.
Extras map[string][]byte `` /* 140-byte string literal not displayed */
// Tags are a list of tags that can be used to filter the events.
Tags []string `protobuf:"bytes,12,rep,name=tags,proto3" json:"tags,omitempty"`
// Signature hold the signature of the a cloudevent's data field.
Signature string `protobuf:"bytes,13,opt,name=signature,proto3" json:"signature,omitempty"`
// contains filtered or unexported fields
}
CloudEventHeader represents the header structure of a CloudEvent.
func CloudEventHeaderToProto ¶ added in v0.0.15
func CloudEventHeaderToProto(event *cloudevent.CloudEventHeader) *CloudEventHeader
CloudEventHeaderToProto converts a cloudevent.CloudEventHeader to a grpc.CloudEventHeader.
func (*CloudEventHeader) AsCloudEventHeader ¶ added in v0.0.3
func (c *CloudEventHeader) AsCloudEventHeader() cloudevent.CloudEventHeader
AsCloudEventHeader converts the CloudEventHeader to a cloudevent.CloudEventHeader.
func (*CloudEventHeader) Descriptor
deprecated
added in
v0.0.3
func (*CloudEventHeader) Descriptor() ([]byte, []int)
Deprecated: Use CloudEventHeader.ProtoReflect.Descriptor instead.
func (*CloudEventHeader) GetDataContentType ¶ added in v0.0.3
func (x *CloudEventHeader) GetDataContentType() string
func (*CloudEventHeader) GetDataSchema ¶ added in v0.0.3
func (x *CloudEventHeader) GetDataSchema() string
func (*CloudEventHeader) GetDataVersion ¶ added in v0.0.3
func (x *CloudEventHeader) GetDataVersion() string
func (*CloudEventHeader) GetExtras ¶ added in v0.0.3
func (x *CloudEventHeader) GetExtras() map[string][]byte
func (*CloudEventHeader) GetId ¶ added in v0.0.3
func (x *CloudEventHeader) GetId() string
func (*CloudEventHeader) GetProducer ¶ added in v0.0.3
func (x *CloudEventHeader) GetProducer() string
func (*CloudEventHeader) GetSignature ¶ added in v0.0.15
func (x *CloudEventHeader) GetSignature() string
func (*CloudEventHeader) GetSource ¶ added in v0.0.3
func (x *CloudEventHeader) GetSource() string
func (*CloudEventHeader) GetSpecVersion ¶ added in v0.0.3
func (x *CloudEventHeader) GetSpecVersion() string
func (*CloudEventHeader) GetSubject ¶ added in v0.0.3
func (x *CloudEventHeader) GetSubject() string
func (*CloudEventHeader) GetTags ¶ added in v0.0.14
func (x *CloudEventHeader) GetTags() []string
func (*CloudEventHeader) GetTime ¶ added in v0.0.3
func (x *CloudEventHeader) GetTime() *timestamppb.Timestamp
func (*CloudEventHeader) GetType ¶ added in v0.0.3
func (x *CloudEventHeader) GetType() string
func (*CloudEventHeader) ProtoMessage ¶ added in v0.0.3
func (*CloudEventHeader) ProtoMessage()
func (*CloudEventHeader) ProtoReflect ¶ added in v0.0.3
func (x *CloudEventHeader) ProtoReflect() protoreflect.Message
func (*CloudEventHeader) Reset ¶ added in v0.0.3
func (x *CloudEventHeader) Reset()
func (*CloudEventHeader) String ¶ added in v0.0.3
func (x *CloudEventHeader) String() string
type CloudEventIndex ¶ added in v0.0.4
type CloudEventIndex struct {
// The cloud event header of the cloud event.
Header *CloudEventHeader `protobuf:"bytes,1,opt,name=header,proto3" json:"header,omitempty"`
// The index key of the cloud event.
Data *ObjectInfo `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
// contains filtered or unexported fields
}
func (*CloudEventIndex) Descriptor
deprecated
added in
v0.0.4
func (*CloudEventIndex) Descriptor() ([]byte, []int)
Deprecated: Use CloudEventIndex.ProtoReflect.Descriptor instead.
func (*CloudEventIndex) GetData ¶ added in v0.0.4
func (x *CloudEventIndex) GetData() *ObjectInfo
func (*CloudEventIndex) GetHeader ¶ added in v0.0.4
func (x *CloudEventIndex) GetHeader() *CloudEventHeader
func (*CloudEventIndex) ProtoMessage ¶ added in v0.0.4
func (*CloudEventIndex) ProtoMessage()
func (*CloudEventIndex) ProtoReflect ¶ added in v0.0.4
func (x *CloudEventIndex) ProtoReflect() protoreflect.Message
func (*CloudEventIndex) Reset ¶ added in v0.0.4
func (x *CloudEventIndex) Reset()
func (*CloudEventIndex) String ¶ added in v0.0.4
func (x *CloudEventIndex) String() string
type FetchServiceClient ¶
type FetchServiceClient interface {
// GetLatestIndexreturns the latest index key for the given options
GetLatestIndex(ctx context.Context, in *GetLatestIndexRequest, opts ...grpc.CallOption) (*GetLatestIndexResponse, error)
// ListIndexes fetches and returns the list of cloud event index objects that match the specified options
ListIndexes(ctx context.Context, in *ListIndexesRequest, opts ...grpc.CallOption) (*ListIndexesResponse, error)
// GetLatestCloudEvent fetches and returns the latest object that matches the specified options
GetLatestCloudEvent(ctx context.Context, in *GetLatestCloudEventRequest, opts ...grpc.CallOption) (*GetLatestCloudEventResponse, error)
// ListCloudEvents fetches and returns the list of objects that match the specified options
ListCloudEvents(ctx context.Context, in *ListCloudEventsRequest, opts ...grpc.CallOption) (*ListCloudEventsResponse, error)
// ListCloudEventsFromKeys fetches and returns the list of objects that match the specified index key
ListCloudEventsFromIndex(ctx context.Context, in *ListCloudEventsFromKeysRequest, opts ...grpc.CallOption) (*ListCloudEventsFromKeysResponse, error)
}
FetchServiceClient is the client API for FetchService 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.
FetchService defines the gRPC service for fetching DIMO objects
func NewFetchServiceClient ¶
func NewFetchServiceClient(cc grpc.ClientConnInterface) FetchServiceClient
type FetchServiceServer ¶
type FetchServiceServer interface {
// GetLatestIndexreturns the latest index key for the given options
GetLatestIndex(context.Context, *GetLatestIndexRequest) (*GetLatestIndexResponse, error)
// ListIndexes fetches and returns the list of cloud event index objects that match the specified options
ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
// GetLatestCloudEvent fetches and returns the latest object that matches the specified options
GetLatestCloudEvent(context.Context, *GetLatestCloudEventRequest) (*GetLatestCloudEventResponse, error)
// ListCloudEvents fetches and returns the list of objects that match the specified options
ListCloudEvents(context.Context, *ListCloudEventsRequest) (*ListCloudEventsResponse, error)
// ListCloudEventsFromKeys fetches and returns the list of objects that match the specified index key
ListCloudEventsFromIndex(context.Context, *ListCloudEventsFromKeysRequest) (*ListCloudEventsFromKeysResponse, error)
// contains filtered or unexported methods
}
FetchServiceServer is the server API for FetchService service. All implementations must embed UnimplementedFetchServiceServer for forward compatibility.
FetchService defines the gRPC service for fetching DIMO objects
type GetLatestCloudEventRequest ¶ added in v0.0.3
type GetLatestCloudEventRequest struct {
// Search options to filter the events.
Options *SearchOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
// Advanced search options to filter the events.
AdvancedOptions *AdvancedSearchOptions `protobuf:"bytes,2,opt,name=advanced_options,json=advancedOptions,proto3" json:"advanced_options,omitempty"`
// contains filtered or unexported fields
}
GetLatestCloudEventRequest includes search options to filter the events.
func (*GetLatestCloudEventRequest) Descriptor
deprecated
added in
v0.0.3
func (*GetLatestCloudEventRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestCloudEventRequest.ProtoReflect.Descriptor instead.
func (*GetLatestCloudEventRequest) GetAdvancedOptions ¶ added in v0.0.14
func (x *GetLatestCloudEventRequest) GetAdvancedOptions() *AdvancedSearchOptions
func (*GetLatestCloudEventRequest) GetOptions ¶ added in v0.0.3
func (x *GetLatestCloudEventRequest) GetOptions() *SearchOptions
func (*GetLatestCloudEventRequest) ProtoMessage ¶ added in v0.0.3
func (*GetLatestCloudEventRequest) ProtoMessage()
func (*GetLatestCloudEventRequest) ProtoReflect ¶ added in v0.0.3
func (x *GetLatestCloudEventRequest) ProtoReflect() protoreflect.Message
func (*GetLatestCloudEventRequest) Reset ¶ added in v0.0.3
func (x *GetLatestCloudEventRequest) Reset()
func (*GetLatestCloudEventRequest) String ¶ added in v0.0.3
func (x *GetLatestCloudEventRequest) String() string
type GetLatestCloudEventResponse ¶ added in v0.0.3
type GetLatestCloudEventResponse struct {
// The data retrieved from the latest cloud event.
CloudEvent *CloudEvent `protobuf:"bytes,1,opt,name=cloud_event,json=cloudEvent,proto3" json:"cloud_event,omitempty"`
// contains filtered or unexported fields
}
GetLatestCloudEventResponse provides the data retrieved from the latest cloud event.
func (*GetLatestCloudEventResponse) Descriptor
deprecated
added in
v0.0.3
func (*GetLatestCloudEventResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestCloudEventResponse.ProtoReflect.Descriptor instead.
func (*GetLatestCloudEventResponse) GetCloudEvent ¶ added in v0.0.3
func (x *GetLatestCloudEventResponse) GetCloudEvent() *CloudEvent
func (*GetLatestCloudEventResponse) ProtoMessage ¶ added in v0.0.3
func (*GetLatestCloudEventResponse) ProtoMessage()
func (*GetLatestCloudEventResponse) ProtoReflect ¶ added in v0.0.3
func (x *GetLatestCloudEventResponse) ProtoReflect() protoreflect.Message
func (*GetLatestCloudEventResponse) Reset ¶ added in v0.0.3
func (x *GetLatestCloudEventResponse) Reset()
func (*GetLatestCloudEventResponse) String ¶ added in v0.0.3
func (x *GetLatestCloudEventResponse) String() string
type GetLatestIndexRequest ¶ added in v0.0.4
type GetLatestIndexRequest struct {
Options *SearchOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
AdvancedOptions *AdvancedSearchOptions `protobuf:"bytes,2,opt,name=advanced_options,json=advancedOptions,proto3" json:"advanced_options,omitempty"`
// contains filtered or unexported fields
}
GetLatestIndexRequest includes search options to filter the events.
func (*GetLatestIndexRequest) Descriptor
deprecated
added in
v0.0.4
func (*GetLatestIndexRequest) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestIndexRequest.ProtoReflect.Descriptor instead.
func (*GetLatestIndexRequest) GetAdvancedOptions ¶ added in v0.0.14
func (x *GetLatestIndexRequest) GetAdvancedOptions() *AdvancedSearchOptions
func (*GetLatestIndexRequest) GetOptions ¶ added in v0.0.4
func (x *GetLatestIndexRequest) GetOptions() *SearchOptions
func (*GetLatestIndexRequest) ProtoMessage ¶ added in v0.0.4
func (*GetLatestIndexRequest) ProtoMessage()
func (*GetLatestIndexRequest) ProtoReflect ¶ added in v0.0.4
func (x *GetLatestIndexRequest) ProtoReflect() protoreflect.Message
func (*GetLatestIndexRequest) Reset ¶ added in v0.0.4
func (x *GetLatestIndexRequest) Reset()
func (*GetLatestIndexRequest) String ¶ added in v0.0.4
func (x *GetLatestIndexRequest) String() string
type GetLatestIndexResponse ¶ added in v0.0.4
type GetLatestIndexResponse struct {
// The latest index key retrieved for the specified search criteria.
Index *CloudEventIndex `protobuf:"bytes,1,opt,name=index,proto3" json:"index,omitempty"`
// contains filtered or unexported fields
}
GetLatestIndexResponse provides the latest index retrieved for the specified search criteria.
func (*GetLatestIndexResponse) Descriptor
deprecated
added in
v0.0.4
func (*GetLatestIndexResponse) Descriptor() ([]byte, []int)
Deprecated: Use GetLatestIndexResponse.ProtoReflect.Descriptor instead.
func (*GetLatestIndexResponse) GetIndex ¶ added in v0.0.4
func (x *GetLatestIndexResponse) GetIndex() *CloudEventIndex
func (*GetLatestIndexResponse) ProtoMessage ¶ added in v0.0.4
func (*GetLatestIndexResponse) ProtoMessage()
func (*GetLatestIndexResponse) ProtoReflect ¶ added in v0.0.4
func (x *GetLatestIndexResponse) ProtoReflect() protoreflect.Message
func (*GetLatestIndexResponse) Reset ¶ added in v0.0.4
func (x *GetLatestIndexResponse) Reset()
func (*GetLatestIndexResponse) String ¶ added in v0.0.4
func (x *GetLatestIndexResponse) String() string
type ListCloudEventsFromKeysRequest ¶ added in v0.0.3
type ListCloudEventsFromKeysRequest struct {
// The list of index objects whose underlying cloud events are to be retrieved.
Indexes []*CloudEventIndex `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"`
// contains filtered or unexported fields
}
ListCloudEventsFromKeysRequest includes the index key to filter the events.
func (*ListCloudEventsFromKeysRequest) Descriptor
deprecated
added in
v0.0.3
func (*ListCloudEventsFromKeysRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudEventsFromKeysRequest.ProtoReflect.Descriptor instead.
func (*ListCloudEventsFromKeysRequest) GetIndexes ¶ added in v0.0.4
func (x *ListCloudEventsFromKeysRequest) GetIndexes() []*CloudEventIndex
func (*ListCloudEventsFromKeysRequest) ProtoMessage ¶ added in v0.0.3
func (*ListCloudEventsFromKeysRequest) ProtoMessage()
func (*ListCloudEventsFromKeysRequest) ProtoReflect ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysRequest) ProtoReflect() protoreflect.Message
func (*ListCloudEventsFromKeysRequest) Reset ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysRequest) Reset()
func (*ListCloudEventsFromKeysRequest) String ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysRequest) String() string
type ListCloudEventsFromKeysResponse ¶ added in v0.0.3
type ListCloudEventsFromKeysResponse struct {
// The list of data retrieved from the objects.
CloudEvents []*CloudEvent `protobuf:"bytes,1,rep,name=cloud_events,json=cloudEvents,proto3" json:"cloud_events,omitempty"`
// contains filtered or unexported fields
}
ListCloudEventsFromNameResponse provides the list of data retrieved from the objects.
func (*ListCloudEventsFromKeysResponse) Descriptor
deprecated
added in
v0.0.3
func (*ListCloudEventsFromKeysResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudEventsFromKeysResponse.ProtoReflect.Descriptor instead.
func (*ListCloudEventsFromKeysResponse) GetCloudEvents ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysResponse) GetCloudEvents() []*CloudEvent
func (*ListCloudEventsFromKeysResponse) ProtoMessage ¶ added in v0.0.3
func (*ListCloudEventsFromKeysResponse) ProtoMessage()
func (*ListCloudEventsFromKeysResponse) ProtoReflect ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysResponse) ProtoReflect() protoreflect.Message
func (*ListCloudEventsFromKeysResponse) Reset ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysResponse) Reset()
func (*ListCloudEventsFromKeysResponse) String ¶ added in v0.0.3
func (x *ListCloudEventsFromKeysResponse) String() string
type ListCloudEventsRequest ¶ added in v0.0.3
type ListCloudEventsRequest struct {
// Search options to filter the events.
Options *SearchOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
// The maximum number of objects to return.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Advanced search options to filter the events.
AdvancedOptions *AdvancedSearchOptions `protobuf:"bytes,3,opt,name=advanced_options,json=advancedOptions,proto3" json:"advanced_options,omitempty"`
// contains filtered or unexported fields
}
ListCloudEventsRequest includes search options to filter the events.
func (*ListCloudEventsRequest) Descriptor
deprecated
added in
v0.0.3
func (*ListCloudEventsRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudEventsRequest.ProtoReflect.Descriptor instead.
func (*ListCloudEventsRequest) GetAdvancedOptions ¶ added in v0.0.14
func (x *ListCloudEventsRequest) GetAdvancedOptions() *AdvancedSearchOptions
func (*ListCloudEventsRequest) GetLimit ¶ added in v0.0.3
func (x *ListCloudEventsRequest) GetLimit() int32
func (*ListCloudEventsRequest) GetOptions ¶ added in v0.0.3
func (x *ListCloudEventsRequest) GetOptions() *SearchOptions
func (*ListCloudEventsRequest) ProtoMessage ¶ added in v0.0.3
func (*ListCloudEventsRequest) ProtoMessage()
func (*ListCloudEventsRequest) ProtoReflect ¶ added in v0.0.3
func (x *ListCloudEventsRequest) ProtoReflect() protoreflect.Message
func (*ListCloudEventsRequest) Reset ¶ added in v0.0.3
func (x *ListCloudEventsRequest) Reset()
func (*ListCloudEventsRequest) String ¶ added in v0.0.3
func (x *ListCloudEventsRequest) String() string
type ListCloudEventsResponse ¶ added in v0.0.3
type ListCloudEventsResponse struct {
// The list of data retrieved from the objects.
CloudEvents []*CloudEvent `protobuf:"bytes,1,rep,name=cloud_events,json=cloudEvents,proto3" json:"cloud_events,omitempty"`
// contains filtered or unexported fields
}
ListCloudEventsResponse provides the list of data retrieved from the objects.
func (*ListCloudEventsResponse) Descriptor
deprecated
added in
v0.0.3
func (*ListCloudEventsResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListCloudEventsResponse.ProtoReflect.Descriptor instead.
func (*ListCloudEventsResponse) GetCloudEvents ¶ added in v0.0.3
func (x *ListCloudEventsResponse) GetCloudEvents() []*CloudEvent
func (*ListCloudEventsResponse) ProtoMessage ¶ added in v0.0.3
func (*ListCloudEventsResponse) ProtoMessage()
func (*ListCloudEventsResponse) ProtoReflect ¶ added in v0.0.3
func (x *ListCloudEventsResponse) ProtoReflect() protoreflect.Message
func (*ListCloudEventsResponse) Reset ¶ added in v0.0.3
func (x *ListCloudEventsResponse) Reset()
func (*ListCloudEventsResponse) String ¶ added in v0.0.3
func (x *ListCloudEventsResponse) String() string
type ListIndexesRequest ¶ added in v0.0.4
type ListIndexesRequest struct {
// Search options to filter the events.
Options *SearchOptions `protobuf:"bytes,1,opt,name=options,proto3" json:"options,omitempty"`
// The maximum number of index objects to return.
Limit int32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"`
// Advanced search options to filter the events.
AdvancedOptions *AdvancedSearchOptions `protobuf:"bytes,3,opt,name=advanced_options,json=advancedOptions,proto3" json:"advanced_options,omitempty"`
// contains filtered or unexported fields
}
ListIndexesRequest includes search options to filter the events.
func (*ListIndexesRequest) Descriptor
deprecated
added in
v0.0.4
func (*ListIndexesRequest) Descriptor() ([]byte, []int)
Deprecated: Use ListIndexesRequest.ProtoReflect.Descriptor instead.
func (*ListIndexesRequest) GetAdvancedOptions ¶ added in v0.0.14
func (x *ListIndexesRequest) GetAdvancedOptions() *AdvancedSearchOptions
func (*ListIndexesRequest) GetLimit ¶ added in v0.0.4
func (x *ListIndexesRequest) GetLimit() int32
func (*ListIndexesRequest) GetOptions ¶ added in v0.0.4
func (x *ListIndexesRequest) GetOptions() *SearchOptions
func (*ListIndexesRequest) ProtoMessage ¶ added in v0.0.4
func (*ListIndexesRequest) ProtoMessage()
func (*ListIndexesRequest) ProtoReflect ¶ added in v0.0.4
func (x *ListIndexesRequest) ProtoReflect() protoreflect.Message
func (*ListIndexesRequest) Reset ¶ added in v0.0.4
func (x *ListIndexesRequest) Reset()
func (*ListIndexesRequest) String ¶ added in v0.0.4
func (x *ListIndexesRequest) String() string
type ListIndexesResponse ¶ added in v0.0.4
type ListIndexesResponse struct {
// The list of index objects retrieved for the specified search criteria.
Indexes []*CloudEventIndex `protobuf:"bytes,1,rep,name=indexes,proto3" json:"indexes,omitempty"`
// contains filtered or unexported fields
}
ListIndexesResponse returns the list of index for cloud events retrieved for the specified search criteria.
func (*ListIndexesResponse) Descriptor
deprecated
added in
v0.0.4
func (*ListIndexesResponse) Descriptor() ([]byte, []int)
Deprecated: Use ListIndexesResponse.ProtoReflect.Descriptor instead.
func (*ListIndexesResponse) GetIndexes ¶ added in v0.0.4
func (x *ListIndexesResponse) GetIndexes() []*CloudEventIndex
func (*ListIndexesResponse) ProtoMessage ¶ added in v0.0.4
func (*ListIndexesResponse) ProtoMessage()
func (*ListIndexesResponse) ProtoReflect ¶ added in v0.0.4
func (x *ListIndexesResponse) ProtoReflect() protoreflect.Message
func (*ListIndexesResponse) Reset ¶ added in v0.0.4
func (x *ListIndexesResponse) Reset()
func (*ListIndexesResponse) String ¶ added in v0.0.4
func (x *ListIndexesResponse) String() string
type ObjectInfo ¶ added in v0.0.4
type ObjectInfo struct {
// The index key of the cloud event.
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
// contains filtered or unexported fields
}
func (*ObjectInfo) Descriptor
deprecated
added in
v0.0.4
func (*ObjectInfo) Descriptor() ([]byte, []int)
Deprecated: Use ObjectInfo.ProtoReflect.Descriptor instead.
func (*ObjectInfo) GetKey ¶ added in v0.0.4
func (x *ObjectInfo) GetKey() string
func (*ObjectInfo) ProtoMessage ¶ added in v0.0.4
func (*ObjectInfo) ProtoMessage()
func (*ObjectInfo) ProtoReflect ¶ added in v0.0.4
func (x *ObjectInfo) ProtoReflect() protoreflect.Message
func (*ObjectInfo) Reset ¶ added in v0.0.4
func (x *ObjectInfo) Reset()
func (*ObjectInfo) String ¶ added in v0.0.4
func (x *ObjectInfo) String() string
type SearchOptions ¶
type SearchOptions struct {
// Only include events after this timestamp.
After *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=after,proto3" json:"after,omitempty"`
// Only include events before this timestamp.
Before *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=before,proto3" json:"before,omitempty"`
// Whether to sort results in ascending order by timestamp.
TimestampAsc *wrapperspb.BoolValue `protobuf:"bytes,3,opt,name=timestamp_asc,json=timestampAsc,proto3" json:"timestamp_asc,omitempty"`
// Type of the event to filter.
Type *wrapperspb.StringValue `protobuf:"bytes,4,opt,name=type,proto3" json:"type,omitempty"`
// DataVersion of the event to filter.
DataVersion *wrapperspb.StringValue `protobuf:"bytes,5,opt,name=data_version,json=dataVersion,proto3" json:"data_version,omitempty"`
// The subject of the event to filter.
Subject *wrapperspb.StringValue `protobuf:"bytes,6,opt,name=subject,proto3" json:"subject,omitempty"`
// The source identifier responsible for creating the data.
Source *wrapperspb.StringValue `protobuf:"bytes,8,opt,name=source,proto3" json:"source,omitempty"`
// The producer of the data, source entity responsible for creating the data.
Producer *wrapperspb.StringValue `protobuf:"bytes,9,opt,name=producer,proto3" json:"producer,omitempty"`
// exta values from the cloud event header this is a JSON string.
Extras *wrapperspb.StringValue `protobuf:"bytes,10,opt,name=extras,proto3" json:"extras,omitempty"`
// ID of the event to filter.
Id *wrapperspb.StringValue `protobuf:"bytes,11,opt,name=id,proto3" json:"id,omitempty"`
// contains filtered or unexported fields
}
SearchOptions provides filtering options to narrow down the search results for objects based on various criteria. If a field is not set, it is not used for filtering.
func (*SearchOptions) Descriptor
deprecated
func (*SearchOptions) Descriptor() ([]byte, []int)
Deprecated: Use SearchOptions.ProtoReflect.Descriptor instead.
func (*SearchOptions) GetAfter ¶
func (x *SearchOptions) GetAfter() *timestamppb.Timestamp
func (*SearchOptions) GetBefore ¶
func (x *SearchOptions) GetBefore() *timestamppb.Timestamp
func (*SearchOptions) GetDataVersion ¶ added in v0.0.3
func (x *SearchOptions) GetDataVersion() *wrapperspb.StringValue
func (*SearchOptions) GetExtras ¶ added in v0.0.4
func (x *SearchOptions) GetExtras() *wrapperspb.StringValue
func (*SearchOptions) GetId ¶ added in v0.0.12
func (x *SearchOptions) GetId() *wrapperspb.StringValue
func (*SearchOptions) GetProducer ¶
func (x *SearchOptions) GetProducer() *wrapperspb.StringValue
func (*SearchOptions) GetSource ¶
func (x *SearchOptions) GetSource() *wrapperspb.StringValue
func (*SearchOptions) GetSubject ¶
func (x *SearchOptions) GetSubject() *wrapperspb.StringValue
func (*SearchOptions) GetTimestampAsc ¶
func (x *SearchOptions) GetTimestampAsc() *wrapperspb.BoolValue
func (*SearchOptions) GetType ¶ added in v0.0.3
func (x *SearchOptions) GetType() *wrapperspb.StringValue
func (*SearchOptions) ProtoMessage ¶
func (*SearchOptions) ProtoMessage()
func (*SearchOptions) ProtoReflect ¶
func (x *SearchOptions) ProtoReflect() protoreflect.Message
func (*SearchOptions) Reset ¶
func (x *SearchOptions) Reset()
func (*SearchOptions) String ¶
func (x *SearchOptions) String() string
type StringFilterOption ¶ added in v0.0.14
type StringFilterOption struct {
// Match if the field is in the list of values.
In []string `protobuf:"bytes,1,rep,name=in,proto3" json:"in,omitempty"`
// Match if the field is not in the list of values.
NotIn []string `protobuf:"bytes,2,rep,name=not_in,json=notIn,proto3" json:"not_in,omitempty"`
// Additional filter condition to combine with this one using OR logic.
Or []*StringFilterOption `protobuf:"bytes,3,rep,name=or,proto3" json:"or,omitempty"`
// contains filtered or unexported fields
}
func (*StringFilterOption) Descriptor
deprecated
added in
v0.0.14
func (*StringFilterOption) Descriptor() ([]byte, []int)
Deprecated: Use StringFilterOption.ProtoReflect.Descriptor instead.
func (*StringFilterOption) GetIn ¶ added in v0.0.14
func (x *StringFilterOption) GetIn() []string
func (*StringFilterOption) GetNotIn ¶ added in v0.0.14
func (x *StringFilterOption) GetNotIn() []string
func (*StringFilterOption) GetOr ¶ added in v0.0.14
func (x *StringFilterOption) GetOr() []*StringFilterOption
func (*StringFilterOption) ProtoMessage ¶ added in v0.0.14
func (*StringFilterOption) ProtoMessage()
func (*StringFilterOption) ProtoReflect ¶ added in v0.0.14
func (x *StringFilterOption) ProtoReflect() protoreflect.Message
func (*StringFilterOption) Reset ¶ added in v0.0.14
func (x *StringFilterOption) Reset()
func (*StringFilterOption) String ¶ added in v0.0.14
func (x *StringFilterOption) String() string
type UnimplementedFetchServiceServer ¶
type UnimplementedFetchServiceServer struct{}
UnimplementedFetchServiceServer 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 (UnimplementedFetchServiceServer) GetLatestCloudEvent ¶ added in v0.0.3
func (UnimplementedFetchServiceServer) GetLatestCloudEvent(context.Context, *GetLatestCloudEventRequest) (*GetLatestCloudEventResponse, error)
func (UnimplementedFetchServiceServer) GetLatestIndex ¶ added in v0.0.4
func (UnimplementedFetchServiceServer) GetLatestIndex(context.Context, *GetLatestIndexRequest) (*GetLatestIndexResponse, error)
func (UnimplementedFetchServiceServer) ListCloudEvents ¶ added in v0.0.3
func (UnimplementedFetchServiceServer) ListCloudEvents(context.Context, *ListCloudEventsRequest) (*ListCloudEventsResponse, error)
func (UnimplementedFetchServiceServer) ListCloudEventsFromIndex ¶ added in v0.0.4
func (UnimplementedFetchServiceServer) ListCloudEventsFromIndex(context.Context, *ListCloudEventsFromKeysRequest) (*ListCloudEventsFromKeysResponse, error)
func (UnimplementedFetchServiceServer) ListIndexes ¶ added in v0.0.4
func (UnimplementedFetchServiceServer) ListIndexes(context.Context, *ListIndexesRequest) (*ListIndexesResponse, error)
type UnsafeFetchServiceServer ¶
type UnsafeFetchServiceServer interface {
// contains filtered or unexported methods
}
UnsafeFetchServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to FetchServiceServer will result in compilation errors.