package
1.11.1
Repository: https://github.com/ayaro/prototool.git
Documentation: pkg.go.dev

# Functions

HandlerWithCallTimeout returns a HandlerOption that has the given call timeout.
HandlerWithConnectTimeout returns a HandlerOption that has the given connect timeout.
HandlerWithDetails returns a HandlerOption that outputs responses in a structured JSON message that includes headers, trailers, and statuses.
HandlerWithHeader returns a HandlerOption that adds the given key/value header.
HandlerWithKeepaliveTime returns a HandlerOption that has the given keepalive time.
HandlerWithLogger returns a HandlerOption that uses the given logger.
HandlerWithTLS returns a HandlerOption that enables TLS connections to the remote host with the given configuration attributes.
NewHandler returns a new Handler.

# Constants

DefaultCallTimeout is the default call timeout.
DefaultConnectTimeout is the default connect timeout.

# Interfaces

Handler handles gRPC calls.

# Type aliases

HandlerOption is an option for a new Handler.