rpcserver

package
v2.33.1 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: MIT Imports: 17 Imported by: 0

Documentation

Overview

Package rpcserver exposes the pkg/cortexdb facade over gRPC. It is a pure conversion layer: every handler converts proto messages to the facade's Request/Response structs and delegates to *cortexdb.DB.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(db *cortexdb.DB, opts Options) *grpc.Server

New returns a grpc.Server with all cortexdb.v1 services registered.

func Register

func Register(s *grpc.Server, db *cortexdb.DB, opts Options)

Register attaches all cortexdb.v1 services to an existing grpc.Server.

Types

type Options

type Options struct {
	// Token enables bearer-token auth when non-empty.
	Token string
	// DBPath is reported by AdminService.Info.
	DBPath string
}

Options configures the gRPC server wrapper.

Jump to

Keyboard shortcuts

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