rpc

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Dec 2, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Overview

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

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

type Server struct {
	grpc.UnimplementedFetchServiceServer
	// contains filtered or unexported fields
}

Server is used to implement grpc.IndexRepoServiceServer.

func NewServer

func NewServer(chConn clickhouse.Conn, objGetter indexrepo.ObjectGetter, cloudEventBucket, ephemeralBucket string) *Server

NewServer creates a new Server instance.

func (*Server) GetLatestCloudEvent added in v0.0.3

GetLatestCloudEvent translates the gRPC call to the indexrepo type and fetches the latest data for the given options.

func (*Server) GetLatestMetadata added in v0.0.3

GetLatestMetadata translates the gRPC call to the indexrepo type and returns the latest metadata for the given options.

func (*Server) ListCloudEvents added in v0.0.3

ListCloudEvents translates the gRPC call to the indexrepo type and fetches data for the given options.

func (*Server) ListCloudEventsFromKeys added in v0.0.3

ListCloudEventsFromKeys translates the gRPC call to the indexrepo type and fetches data for the given options.

func (*Server) ListMetadata added in v0.0.3

ListMetadata translates the gRPC call to the indexrepo type and fetches index keys for the given options.

Jump to

Keyboard shortcuts

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