Documentation ¶
Index ¶
- func TcpListener(addr string) (net.Listener, error)
- func TransportCredentialsOption(certPemFile string, serverNameOverride string) (grpc.DialOption, error)
- func WithDefaultDialBlock() grpc.DialOption
- func WithDefaultKeepAlive() grpc.ServerOption
- func WithDefaultKeepAliveEnforcement() grpc.ServerOption
- func WithDefaultKeepAliveParams() grpc.DialOption
- func WithDefaultServiceConfig(defaultServiceConfig string) grpc.DialOption
- func WithDialBlock(dialBlock bool) grpc.DialOption
- func WithInsecureTransportCreds() grpc.DialOption
- func WithKeepAlive(maxConnIdle, maxConnAge, maxConnAgeGrace time.Duration, ...) grpc.ServerOption
- func WithKeepAliveEnforcement(enabled bool, minTime time.Duration, permitWithoutStream bool) grpc.ServerOption
- func WithKeepAliveParams(keepAliveTime, keepAliveTimeout time.Duration, permitWithoutStream bool) grpc.DialOption
- func WithTLSConfigTransportCreds(c *tls.Config) grpc.DialOption
- func WithX509KeyPair(certPemFile, certKeyFile string) (grpc.ServerOption, error)
- type Client
- type Server
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TransportCredentialsOption ¶ added in v2.3.2
func TransportCredentialsOption(certPemFile string, serverNameOverride string) (grpc.DialOption, error)
func WithDefaultDialBlock ¶ added in v2.3.2
func WithDefaultDialBlock() grpc.DialOption
func WithDefaultKeepAlive ¶ added in v2.3.2
func WithDefaultKeepAlive() grpc.ServerOption
func WithDefaultKeepAliveEnforcement ¶ added in v2.3.2
func WithDefaultKeepAliveEnforcement() grpc.ServerOption
func WithDefaultKeepAliveParams ¶ added in v2.3.2
func WithDefaultKeepAliveParams() grpc.DialOption
func WithDefaultServiceConfig ¶ added in v2.3.2
func WithDefaultServiceConfig(defaultServiceConfig string) grpc.DialOption
func WithDialBlock ¶ added in v2.3.3
func WithDialBlock(dialBlock bool) grpc.DialOption
func WithInsecureTransportCreds ¶ added in v2.3.2
func WithInsecureTransportCreds() grpc.DialOption
func WithKeepAlive ¶ added in v2.3.4
func WithKeepAliveEnforcement ¶ added in v2.3.4
func WithKeepAliveParams ¶ added in v2.3.3
func WithKeepAliveParams(keepAliveTime, keepAliveTimeout time.Duration, permitWithoutStream bool) grpc.DialOption
func WithTLSConfigTransportCreds ¶ added in v2.3.2
func WithTLSConfigTransportCreds(c *tls.Config) grpc.DialOption
func WithX509KeyPair ¶ added in v2.3.4
func WithX509KeyPair(certPemFile, certKeyFile string) (grpc.ServerOption, error)
Types ¶
type Client ¶ added in v2.3.2
type Client struct {
*grpc.ClientConn
}
func NewClientWithDialTimeout ¶ added in v2.3.3
Click to show internal directories.
Click to hide internal directories.