fetchapi

package
v0.1.13 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2025 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FetchAPIService

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

FetchAPIService implements the FetchAPIService interface using gRPC

func New

func New(settings *config.Settings) *FetchAPIService

New creates a new instance of FetchAPIService with the specified server address, vehicle contract address, aftermarket contract address, and chain ID

func (*FetchAPIService) GetAllCloudEvents added in v0.1.9

func (c *FetchAPIService) GetAllCloudEvents(ctx context.Context, filter *pb.SearchOptions, limit int32) ([]cloudevent.CloudEvent[json.RawMessage], error)

GetAllCloudEvents retrieves the most recent file content matching the provided search criteria

func (*FetchAPIService) GetLatestCloudEvent

func (c *FetchAPIService) GetLatestCloudEvent(ctx context.Context, filter *pb.SearchOptions) (cloudevent.CloudEvent[json.RawMessage], error)

GetLatestCloudEvent retrieves the most recent file content matching the provided search criteria

Jump to

Keyboard shortcuts

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