grpc

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: Apache-2.0 Imports: 41 Imported by: 0

Documentation

Overview

Package grpc implements the gRPC services defined by APIs.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type NodeRegistry added in v0.5.0

type NodeRegistry interface {
	Locate(group, name string, shardID uint32) (string, error)
	fmt.Stringer
}

NodeRegistry is for locating data node with group/name of the metadata together with the shardID calculated from the incoming data.

func NewClusterNodeRegistry added in v0.5.0

func NewClusterNodeRegistry(pipeline queue.Client, selector node.Selector) NodeRegistry

NewClusterNodeRegistry creates a cluster node registry.

func NewLocalNodeRegistry added in v0.5.0

func NewLocalNodeRegistry() NodeRegistry

NewLocalNodeRegistry creates a local(fake) node registry.

type Server

type Server interface {
	run.Unit
	GetPort() *uint32
}

Server defines the gRPC server.

func NewServer

func NewServer(_ context.Context, pipeline, broadcaster queue.Client, schemaRegistry metadata.Repo, nodeRegistry NodeRegistry, omr observability.MetricsRegistry) Server

NewServer returns a new gRPC server.

Jump to

Keyboard shortcuts

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