grpc

package
v0.54.3 Latest Latest
Warning

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

Go to latest
Published: May 5, 2026 License: Apache-2.0 Imports: 15 Imported by: 374

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewGRPCServer added in v0.50.0

func NewGRPCServer(clientCtx client.Context, app types.Application, cfg config.GRPCConfig) (*grpc.Server, error)

NewGRPCServer returns a correctly configured and initialized gRPC server. Note, the caller is responsible for starting the server. See StartGRPCServer.

func NewGRPCServerAndContext added in v0.53.5

func NewGRPCServerAndContext(clientCtx client.Context, app types.Application, cfg config.GRPCConfig, logger log.Logger) (*grpc.Server, client.Context, error)

NewGRPCServerAndContext returns a correctly configured and initialized gRPC server along with an updated client context that may include historical gRPC connections.

func StartGRPCServer

func StartGRPCServer(ctx context.Context, logger log.Logger, cfg config.GRPCConfig, grpcSrv *grpc.Server) error

StartGRPCServer starts the provided gRPC server on the address specified in cfg.

Note, this creates a blocking process if the server is started successfully. Otherwise, an error is returned. The caller is expected to provide a Context that is properly canceled or closed to indicate the server should be stopped.

Types

This section is empty.

Directories

Path Synopsis
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
Package gogoreflection implements gRPC reflection for gogoproto consumers the normal reflection library does not work as it points to a different singleton registry.
reflection
v2alpha1
Package v2alpha1 is a reverse proxy.
Package v2alpha1 is a reverse proxy.

Jump to

Keyboard shortcuts

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