grpc: google.golang.org/grpc/internal/envconfig Index | Files

package envconfig

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

Package envconfig contains grpc settings configured by environment variables.

Index

Package Files

envconfig.go

type RequireHandshakeSetting Uses

type RequireHandshakeSetting int

RequireHandshakeSetting describes the settings for handshaking.

const (
    // RequireHandshakeHybrid (default, deprecated) indicates to 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
)

Package envconfig imports 2 packages (graph) and is imported by 1 packages. Updated 2018-11-27. Refresh now. Tools for package owners.