rpc

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 4, 2024 License: Apache-2.0 Imports: 8 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

New creates a new Server instance.

func (*Server) GetIndexKeys

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

func (*Server) GetLatestIndexKey

GetLatestIndexKey translates the gRPC call to the indexrepo type and returns the latest index key for the given options.

func (*Server) GetLatestObject

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

func (*Server) GetObjects

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

func (*Server) GetObjectsFromIndexKeys

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

Jump to

Keyboard shortcuts

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