Involved Source Files
Package connectivity defines connectivity semantics.
For details, see https://github.com/grpc/grpc/blob/master/doc/connectivity-semantics-and-api.md.
All APIs in this package are experimental.
Package-Level Type Names (total 2, both are exported)
/* sort exporteds by: | */
Reporter reports the connectivity states.
CurrentState returns the current state of the reporter.
WaitForStateChange blocks until the reporter's state is different from the given state,
and returns true.
It returns false if <-ctx.Done() can proceed (ctx got timeout or got canceled).
Package-Level Constants (total 5, all are exported)
Connecting indicates the ClientConn is connecting.
Idle indicates the ClientConn is idle.
Ready indicates the ClientConn is ready for work.
Shutdown indicates the ClientConn has started shutting down.
TransientFailure indicates the ClientConn has seen a failure but expects to recover.
The pages are generated with Goldsv0.3.2-preview. (GOOS=darwin GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds.