models

package
v1.0.20 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

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)

Jump to

Keyboard shortcuts

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