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

Variables

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 = RequireHandshakeOn
)

type RequireHandshakeSetting Uses

type RequireHandshakeSetting int

RequireHandshakeSetting describes the settings for handshaking.

const (
    // RequireHandshakeOn indicates to wait for handshake before considering a
    // connection ready/successful.
    RequireHandshakeOn RequireHandshakeSetting = iota
    // RequireHandshakeOff indicates to not wait for handshake before
    // considering a connection ready/successful.
    RequireHandshakeOff
)

Package envconfig imports 2 packages (graph) and is imported by 1 packages. Updated 2019-05-15. Refresh now. Tools for package owners.