Skip to main content

How to set ConnectionOptions in Go

  • Options to control optional connection params
OptionDescriptionType
TLSConfigures connection level security credentialstls.Config
AuthoritySet the value to be used as the :authority pseudo-headerstring
DisableHealthCheckDisable health checkbool
HealthCheckAttemptTimeoutSpecify how to long to wait for service response on each health check attempttime.Duration
HealthCheckTimeoutSet the default health check timeouttime.Duration
EnableKeepAliveCheckSet enable keep alive checkbool
KeepAliveTimeSet the keep alive timetime.Duration
KeepAliveTimeoutSet the keep alive timeouttime.Duration
KeepAlivePermitWithoutStreamSet if client sends keepalive pings even with no active RPCsbool