package envconfig

import "google.golang.org/grpc/internal/envconfig"

Package envconfig contains grpc settings configured by environment variables.

Index

Types

type RequireHandshakeSetting

type RequireHandshakeSetting int

RequireHandshakeSetting describes the settings for handshaking.

const (
	// RequireHandshakeHybrid (default, deprecated) indicates to not wait for
	// handshake before considering a connection ready, but wait before
	// considering successful.
	RequireHandshakeHybrid RequireHandshakeSetting = iota
	// RequireHandshakeOn (default after the 1.17 release) indicates to wait
	// for handshake before considering a connection ready/successful.
	RequireHandshakeOn
	// RequireHandshakeOff indicates to not wait for handshake before
	// considering a connection ready/successful.
	RequireHandshakeOff
)
var (
	// Retry is set if retry is explicitly enabled via "GRPC_GO_RETRY=on".
	Retry = strings.EqualFold(os.Getenv(retryStr), "on")
	// RequireHandshake is set based upon the GRPC_GO_REQUIRE_HANDSHAKE
	// environment variable.
	//
	// Will be removed after the 1.18 release.
	RequireHandshake RequireHandshakeSetting
)

Source Files

envconfig.go

Version
v1.18.0
Published
Jan 15, 2019
Platform
linux/amd64
Imports
2 packages
Last checked
1 hour ago

Tools for package owners.