grpc

package
v0.0.0-...-f282eec Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 17, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRemoteConn

func NewRemoteConn(name string, addr string, options ...RemoteOption) (*grpc.ClientConn, error)

Types

type RemoteConn

type RemoteConn struct {
	// contains filtered or unexported fields
}

type RemoteOption

type RemoteOption func(*RemoteConn) error

func OptConnTimeout

func OptConnTimeout(d int64) RemoteOption

func OptEtcdDiscovery

func OptEtcdDiscovery(addr string) RemoteOption

type WeightBalance

type WeightBalance struct {
	// contains filtered or unexported fields
}

func (*WeightBalance) Build

func (*WeightBalance) Name

func (b *WeightBalance) Name() string

func (*WeightBalance) Pick

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL