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 (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.