Categorygithub.com/bsm/grpctools
modulepackage
0.6.3
Repository: https://github.com/bsm/grpctools.git
Documentation: pkg.go.dev

# README

grpctools

Build Status GoDoc License

Little helpers for grpc

Testing

Simply run:

make

# Packages

No description provided by the author

# Functions

Dial creates a client connection.
DialContext creates a client connection with specified context.
HTTPStatus returns a http stats from a grpc error code.
HTTPStatusFromError returns a http stats from a grpc error code.
NewInstrumenter inits a new instrumenter with a metric.
NewServer returns a new Server instance.
SetLogger is a proxy to grpclog.SetLogger.
VErrorsConvert extracts validation errors from an error.
VErrorsFromStatus extracts validation errors from status.

# Variables

DefaultInstrumenter instruments via "rpc.request" metric.

# Structs

DialOptions represent dial options.
Instrumenter instances instrument RPC requests via interceptors.
Options represent server options.
Server embeds a standard grpc Server with a healthcheck.

# Type aliases

VErrors contains a set of field-violations.