Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRemoteConn ¶ added in v1.1.13
func NewRemoteConn(name string, addr string, options ...RemoteOption) (*grpc.ClientConn, error)
Types ¶
type RemoteConn ¶ added in v1.1.13
type RemoteConn struct {
// contains filtered or unexported fields
}
type RemoteOption ¶ added in v1.1.13
type RemoteOption func(*RemoteConn) error
func OptConnTimeout ¶ added in v1.1.14
func OptConnTimeout(d int64) RemoteOption
func OptEtcdDiscovery ¶ added in v1.1.13
func OptEtcdDiscovery(addr string) RemoteOption
type WeightBalance ¶
type WeightBalance struct {
// contains filtered or unexported fields
}
func (*WeightBalance) Build ¶
func (b *WeightBalance) Build(info base.PickerBuildInfo) balancer.Picker
func (*WeightBalance) Name ¶
func (b *WeightBalance) Name() string
func (*WeightBalance) Pick ¶
func (b *WeightBalance) Pick(info balancer.PickInfo) (balancer.PickResult, error)
Click to show internal directories.
Click to hide internal directories.