grpccommon

package
v0.15.1 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2022 License: Apache-2.0 Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableGRPCPrometheus

func EnableGRPCPrometheus() bool

EnableGRPCPrometheus returns the value of the --grpc_prometheus flag.

func EnableTracingOpt

func EnableTracingOpt()

EnableTracingOpt enables grpc tracing if requested. It must be called before any grpc server or client is created but is safe to be called multiple times.

func MaxMessageSize

func MaxMessageSize() int

MaxMessageSize returns the value of the --grpc_max_message_size flag.

func RegisterFlags added in v0.15.0

func RegisterFlags(fs *pflag.FlagSet)

RegisterFlags installs grpccommon flags on the given FlagSet.

`go/cmd/*` entrypoints should either use servenv.ParseFlags(WithArgs)? which calls this function, or call this function directly before parsing command-line arguments.

Types

This section is empty.

Jump to

Keyboard shortcuts

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