grpcx

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Overview

Package grpcx contains utilities for writing gRPC clients and servers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Errorf

func Errorf(
	code codes.Code,
	details []proto.Message,
	f string,
	v ...interface{},
) error

Errorf returns a new gRPC status error, with an optional detail messages.

func Serve

func Serve(
	ctx context.Context,
	lis net.Listener,
	s *grpc.Server,
) error

Serve runs s until ctx is canceled or an error occurs. The caller must never call s.Stop() or s.GracefulStop().

Types

This section is empty.

Jump to

Keyboard shortcuts

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