fetch

package
v0.0.24 Latest Latest
Warning

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

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

Documentation

Overview

Package fetch provides functions for fetching objects from the index service.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCloudEventFromIndex added in v0.0.4

func GetCloudEventFromIndex(ctx context.Context, evtSvc *eventrepo.Service, indexKeys *cloudevent.CloudEvent[eventrepo.ObjectInfo], buckets []string) (cloudevent.RawEvent, error)

GetCloudEventFromIndex gets an object from the index service by trying each bucket in order, returning the first successful result.

func ListCloudEventsFromIndexes added in v0.0.4

func ListCloudEventsFromIndexes(ctx context.Context, evtSvc *eventrepo.Service, indexKeys []cloudevent.CloudEvent[eventrepo.ObjectInfo], buckets []string) ([]cloudevent.RawEvent, error)

ListCloudEventsFromIndexes fetches cloud events by splitting indexes into parquet refs (handled efficiently via eventrepo with reader caching) and legacy JSON refs (fetched concurrently with multi-bucket fallback). Both paths run concurrently.

Types

This section is empty.

Directories

Path Synopsis
Package rpc provides the gRPC server implementation for the index repo service.
Package rpc provides the gRPC server implementation for the index repo service.

Jump to

Keyboard shortcuts

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