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 ¶
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.
Click to show internal directories.
Click to hide internal directories.