Documentation ¶
Index ¶
- type ServiceNode
- func (n *ServiceNode) ClearFailCnt()
- func (n *ServiceNode) Close()
- func (n *ServiceNode) Enable() bool
- func (n *ServiceNode) GetFailCnt() int
- func (n *ServiceNode) GetGrpcConn() (conn *grpc.ClientConn, err error)
- func (n *ServiceNode) GetUrl() string
- func (n *ServiceNode) IncrFailCnt()
- func (n *ServiceNode) SetEnable(enable bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceNode ¶
type ServiceNode struct { config.RegisterNode //注册节点 Weight int //权重 // contains filtered or unexported fields }
func (*ServiceNode) ClearFailCnt ¶
func (n *ServiceNode) ClearFailCnt()
func (*ServiceNode) Close ¶
func (n *ServiceNode) Close()
func (*ServiceNode) Enable ¶
func (n *ServiceNode) Enable() bool
func (*ServiceNode) GetFailCnt ¶
func (n *ServiceNode) GetFailCnt() int
func (*ServiceNode) GetGrpcConn ¶
func (n *ServiceNode) GetGrpcConn() (conn *grpc.ClientConn, err error)
func (*ServiceNode) GetUrl ¶
func (n *ServiceNode) GetUrl() string
func (*ServiceNode) IncrFailCnt ¶
func (n *ServiceNode) IncrFailCnt()
func (*ServiceNode) SetEnable ¶
func (n *ServiceNode) SetEnable(enable bool)
Click to show internal directories.
Click to hide internal directories.