fetchapi

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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)

View Source
var File_pkg_grpc_cloudevent_proto protoreflect.FileDescriptor
View Source
var File_pkg_grpc_fetch_api_proto protoreflect.FileDescriptor

Functions

func RegisterFetchServiceServer

func RegisterFetchServiceServer(s grpc.ServiceRegistrar, srv FetchServiceServer)

Types

type AdvancedSearchOptions

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

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

Deprecated: Use AdvancedSearchOptions.ProtoReflect.Descriptor instead.

func (*AdvancedSearchOptions) GetAfter

func (*AdvancedSearchOptions) GetBefore

func (*AdvancedSearchOptions) GetDataVersion

func (x *AdvancedSearchOptions) GetDataVersion() *StringFilterOption

func (*AdvancedSearchOptions) GetExtras

func (x *AdvancedSearchOptions) GetExtras() *StringFilterOption

func (*AdvancedSearchOptions) GetId

func (*AdvancedSearchOptions) GetProducer

func (x *AdvancedSearchOptions) GetProducer() *StringFilterOption

func (*AdvancedSearchOptions) GetSource

func (x *AdvancedSearchOptions) GetSource() *StringFilterOption

func (*AdvancedSearchOptions) GetSubject

func (x *AdvancedSearchOptions) GetSubject() *StringFilterOption

func (*AdvancedSearchOptions) GetTags

func (*AdvancedSearchOptions) GetTimestampAsc

func (x *AdvancedSearchOptions) GetTimestampAsc() *wrapperspb.BoolValue

func (*AdvancedSearchOptions) GetType

func (*AdvancedSearchOptions) ProtoMessage

func (*AdvancedSearchOptions) ProtoMessage()

func (*AdvancedSearchOptions) ProtoReflect

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

func (*AdvancedSearchOptions) Reset

func (x *AdvancedSearchOptions) Reset()

func (*AdvancedSearchOptions) String

func (x *AdvancedSearchOptions) String() string

type ArrayFilterOption

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

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

Deprecated: Use ArrayFilterOption.ProtoReflect.Descriptor instead.

func (*ArrayFilterOption) GetContainsAll

func (x *ArrayFilterOption) GetContainsAll() []string

func (*ArrayFilterOption) GetContainsAny

func (x *ArrayFilterOption) GetContainsAny() []string

func (*ArrayFilterOption) GetNotContainsAll

func (x *ArrayFilterOption) GetNotContainsAll() []string

func (*ArrayFilterOption) GetNotContainsAny

func (x *ArrayFilterOption) GetNotContainsAny() []string

func (*ArrayFilterOption) GetOr

func (x *ArrayFilterOption) GetOr() []*ArrayFilterOption

func (*ArrayFilterOption) ProtoMessage

func (*ArrayFilterOption) ProtoMessage()

func (*ArrayFilterOption) ProtoReflect

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

func (*ArrayFilterOption) Reset

func (x *ArrayFilterOption) Reset()

func (*ArrayFilterOption) String

func (x *ArrayFilterOption) String() string

type CloudEvent

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 (*CloudEvent) Descriptor deprecated

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

Deprecated: Use CloudEvent.ProtoReflect.Descriptor instead.

func (*CloudEvent) GetData

func (x *CloudEvent) GetData() []byte

func (*CloudEvent) GetHeader

func (x *CloudEvent) GetHeader() *CloudEventHeader

func (*CloudEvent) ProtoMessage

func (*CloudEvent) ProtoMessage()

func (*CloudEvent) ProtoReflect

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

func (*CloudEvent) Reset

func (x *CloudEvent) Reset()

func (*CloudEvent) String

func (x *CloudEvent) String() string

type CloudEventHeader

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 (*CloudEventHeader) Descriptor deprecated

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

Deprecated: Use CloudEventHeader.ProtoReflect.Descriptor instead.

func (*CloudEventHeader) GetDataContentType

func (x *CloudEventHeader) GetDataContentType() string

func (*CloudEventHeader) GetDataSchema

func (x *CloudEventHeader) GetDataSchema() string

func (*CloudEventHeader) GetDataVersion

func (x *CloudEventHeader) GetDataVersion() string

func (*CloudEventHeader) GetExtras

func (x *CloudEventHeader) GetExtras() map[string][]byte

func (*CloudEventHeader) GetId

func (x *CloudEventHeader) GetId() string

func (*CloudEventHeader) GetProducer

func (x *CloudEventHeader) GetProducer() string

func (*CloudEventHeader) GetSignature

func (x *CloudEventHeader) GetSignature() string

func (*CloudEventHeader) GetSource

func (x *CloudEventHeader) GetSource() string

func (*CloudEventHeader) GetSpecVersion

func (x *CloudEventHeader) GetSpecVersion() string

func (*CloudEventHeader) GetSubject

func (x *CloudEventHeader) GetSubject() string

func (*CloudEventHeader) GetTags

func (x *CloudEventHeader) GetTags() []string

func (*CloudEventHeader) GetTime

func (x *CloudEventHeader) GetTime() *timestamppb.Timestamp

func (*CloudEventHeader) GetType

func (x *CloudEventHeader) GetType() string

func (*CloudEventHeader) ProtoMessage

func (*CloudEventHeader) ProtoMessage()

func (*CloudEventHeader) ProtoReflect

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

func (*CloudEventHeader) Reset

func (x *CloudEventHeader) Reset()

func (*CloudEventHeader) String

func (x *CloudEventHeader) String() string

type CloudEventIndex

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

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

Deprecated: Use CloudEventIndex.ProtoReflect.Descriptor instead.

func (*CloudEventIndex) GetData

func (x *CloudEventIndex) GetData() *ObjectInfo

func (*CloudEventIndex) GetHeader

func (x *CloudEventIndex) GetHeader() *CloudEventHeader

func (*CloudEventIndex) ProtoMessage

func (*CloudEventIndex) ProtoMessage()

func (*CloudEventIndex) ProtoReflect

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

func (*CloudEventIndex) Reset

func (x *CloudEventIndex) Reset()

func (*CloudEventIndex) String

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

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

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

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

Deprecated: Use GetLatestCloudEventRequest.ProtoReflect.Descriptor instead.

func (*GetLatestCloudEventRequest) GetAdvancedOptions

func (x *GetLatestCloudEventRequest) GetAdvancedOptions() *AdvancedSearchOptions

func (*GetLatestCloudEventRequest) GetOptions

func (x *GetLatestCloudEventRequest) GetOptions() *SearchOptions

func (*GetLatestCloudEventRequest) ProtoMessage

func (*GetLatestCloudEventRequest) ProtoMessage()

func (*GetLatestCloudEventRequest) ProtoReflect

func (*GetLatestCloudEventRequest) Reset

func (x *GetLatestCloudEventRequest) Reset()

func (*GetLatestCloudEventRequest) String

func (x *GetLatestCloudEventRequest) String() string

type GetLatestCloudEventResponse

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

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

Deprecated: Use GetLatestCloudEventResponse.ProtoReflect.Descriptor instead.

func (*GetLatestCloudEventResponse) GetCloudEvent

func (x *GetLatestCloudEventResponse) GetCloudEvent() *CloudEvent

func (*GetLatestCloudEventResponse) ProtoMessage

func (*GetLatestCloudEventResponse) ProtoMessage()

func (*GetLatestCloudEventResponse) ProtoReflect

func (*GetLatestCloudEventResponse) Reset

func (x *GetLatestCloudEventResponse) Reset()

func (*GetLatestCloudEventResponse) String

func (x *GetLatestCloudEventResponse) String() string

type GetLatestIndexRequest

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

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

Deprecated: Use GetLatestIndexRequest.ProtoReflect.Descriptor instead.

func (*GetLatestIndexRequest) GetAdvancedOptions

func (x *GetLatestIndexRequest) GetAdvancedOptions() *AdvancedSearchOptions

func (*GetLatestIndexRequest) GetOptions

func (x *GetLatestIndexRequest) GetOptions() *SearchOptions

func (*GetLatestIndexRequest) ProtoMessage

func (*GetLatestIndexRequest) ProtoMessage()

func (*GetLatestIndexRequest) ProtoReflect

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

func (*GetLatestIndexRequest) Reset

func (x *GetLatestIndexRequest) Reset()

func (*GetLatestIndexRequest) String

func (x *GetLatestIndexRequest) String() string

type GetLatestIndexResponse

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

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

Deprecated: Use GetLatestIndexResponse.ProtoReflect.Descriptor instead.

func (*GetLatestIndexResponse) GetIndex

func (x *GetLatestIndexResponse) GetIndex() *CloudEventIndex

func (*GetLatestIndexResponse) ProtoMessage

func (*GetLatestIndexResponse) ProtoMessage()

func (*GetLatestIndexResponse) ProtoReflect

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

func (*GetLatestIndexResponse) Reset

func (x *GetLatestIndexResponse) Reset()

func (*GetLatestIndexResponse) String

func (x *GetLatestIndexResponse) String() string

type ListCloudEventsFromKeysRequest

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

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

Deprecated: Use ListCloudEventsFromKeysRequest.ProtoReflect.Descriptor instead.

func (*ListCloudEventsFromKeysRequest) GetIndexes

func (*ListCloudEventsFromKeysRequest) ProtoMessage

func (*ListCloudEventsFromKeysRequest) ProtoMessage()

func (*ListCloudEventsFromKeysRequest) ProtoReflect

func (*ListCloudEventsFromKeysRequest) Reset

func (x *ListCloudEventsFromKeysRequest) Reset()

func (*ListCloudEventsFromKeysRequest) String

type ListCloudEventsFromKeysResponse

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

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

Deprecated: Use ListCloudEventsFromKeysResponse.ProtoReflect.Descriptor instead.

func (*ListCloudEventsFromKeysResponse) GetCloudEvents

func (x *ListCloudEventsFromKeysResponse) GetCloudEvents() []*CloudEvent

func (*ListCloudEventsFromKeysResponse) ProtoMessage

func (*ListCloudEventsFromKeysResponse) ProtoMessage()

func (*ListCloudEventsFromKeysResponse) ProtoReflect

func (*ListCloudEventsFromKeysResponse) Reset

func (*ListCloudEventsFromKeysResponse) String

type ListCloudEventsRequest

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

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

Deprecated: Use ListCloudEventsRequest.ProtoReflect.Descriptor instead.

func (*ListCloudEventsRequest) GetAdvancedOptions

func (x *ListCloudEventsRequest) GetAdvancedOptions() *AdvancedSearchOptions

func (*ListCloudEventsRequest) GetLimit

func (x *ListCloudEventsRequest) GetLimit() int32

func (*ListCloudEventsRequest) GetOptions

func (x *ListCloudEventsRequest) GetOptions() *SearchOptions

func (*ListCloudEventsRequest) ProtoMessage

func (*ListCloudEventsRequest) ProtoMessage()

func (*ListCloudEventsRequest) ProtoReflect

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

func (*ListCloudEventsRequest) Reset

func (x *ListCloudEventsRequest) Reset()

func (*ListCloudEventsRequest) String

func (x *ListCloudEventsRequest) String() string

type ListCloudEventsResponse

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

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

Deprecated: Use ListCloudEventsResponse.ProtoReflect.Descriptor instead.

func (*ListCloudEventsResponse) GetCloudEvents

func (x *ListCloudEventsResponse) GetCloudEvents() []*CloudEvent

func (*ListCloudEventsResponse) ProtoMessage

func (*ListCloudEventsResponse) ProtoMessage()

func (*ListCloudEventsResponse) ProtoReflect

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

func (*ListCloudEventsResponse) Reset

func (x *ListCloudEventsResponse) Reset()

func (*ListCloudEventsResponse) String

func (x *ListCloudEventsResponse) String() string

type ListIndexesRequest

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

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

Deprecated: Use ListIndexesRequest.ProtoReflect.Descriptor instead.

func (*ListIndexesRequest) GetAdvancedOptions

func (x *ListIndexesRequest) GetAdvancedOptions() *AdvancedSearchOptions

func (*ListIndexesRequest) GetLimit

func (x *ListIndexesRequest) GetLimit() int32

func (*ListIndexesRequest) GetOptions

func (x *ListIndexesRequest) GetOptions() *SearchOptions

func (*ListIndexesRequest) ProtoMessage

func (*ListIndexesRequest) ProtoMessage()

func (*ListIndexesRequest) ProtoReflect

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

func (*ListIndexesRequest) Reset

func (x *ListIndexesRequest) Reset()

func (*ListIndexesRequest) String

func (x *ListIndexesRequest) String() string

type ListIndexesResponse

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

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

Deprecated: Use ListIndexesResponse.ProtoReflect.Descriptor instead.

func (*ListIndexesResponse) GetIndexes

func (x *ListIndexesResponse) GetIndexes() []*CloudEventIndex

func (*ListIndexesResponse) ProtoMessage

func (*ListIndexesResponse) ProtoMessage()

func (*ListIndexesResponse) ProtoReflect

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

func (*ListIndexesResponse) Reset

func (x *ListIndexesResponse) Reset()

func (*ListIndexesResponse) String

func (x *ListIndexesResponse) String() string

type ObjectInfo

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

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

Deprecated: Use ObjectInfo.ProtoReflect.Descriptor instead.

func (*ObjectInfo) GetKey

func (x *ObjectInfo) GetKey() string

func (*ObjectInfo) ProtoMessage

func (*ObjectInfo) ProtoMessage()

func (*ObjectInfo) ProtoReflect

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

func (*ObjectInfo) Reset

func (x *ObjectInfo) Reset()

func (*ObjectInfo) String

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

func (x *SearchOptions) GetDataVersion() *wrapperspb.StringValue

func (*SearchOptions) GetExtras

func (x *SearchOptions) GetExtras() *wrapperspb.StringValue

func (*SearchOptions) GetId

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

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

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

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

Deprecated: Use StringFilterOption.ProtoReflect.Descriptor instead.

func (*StringFilterOption) GetIn

func (x *StringFilterOption) GetIn() []string

func (*StringFilterOption) GetNotIn

func (x *StringFilterOption) GetNotIn() []string

func (*StringFilterOption) GetOr

func (x *StringFilterOption) GetOr() []*StringFilterOption

func (*StringFilterOption) ProtoMessage

func (*StringFilterOption) ProtoMessage()

func (*StringFilterOption) ProtoReflect

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

func (*StringFilterOption) Reset

func (x *StringFilterOption) Reset()

func (*StringFilterOption) String

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) GetLatestIndex

func (UnimplementedFetchServiceServer) ListCloudEvents

func (UnimplementedFetchServiceServer) ListIndexes

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.

Jump to

Keyboard shortcuts

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