rpc

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Jan 6, 2025 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) GetLatestIndex added in v0.0.4

GetLatestIndex translates the gRPC call to the indexrepo type and returns the latest index 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) ListCloudEventsFromIndex added in v0.0.4

ListCloudEventsFromIndex translates the gRPC call to the indexrepo type and fetches data for the given index keys.

func (*Server) ListIndex added in v0.0.4

ListIndex 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