Documentation ¶
Index ¶
- func SetNode(node *Node)
- type IMap
- type IServers
- type Node
- type Servers
- func (this *Servers) Count(nodeType int) int
- func (this *Servers) Delete(nodeType int, id uint32)
- func (this *Servers) GetAll(nodeType int) ([]*k8s.Endpoint, bool)
- func (this *Servers) GetByID(id uint32) (m *k8s.Endpoint, ok bool)
- func (this *Servers) GetOne(nodeType int) (uint32, *k8s.Endpoint, bool)
- func (this *Servers) Set(nodeType int, id uint32, val *k8s.Endpoint)
- type ServersPolicyRoundRobin
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type IServers ¶
type IServers interface { GetOne(nodeType int) (uint32, *k8s.Endpoint, bool) GetAll(nodeType int) ([]*k8s.Endpoint, bool) Set(nodeType int, id uint32, val *k8s.Endpoint) Delete(nodeType int, id uint32) GetByID(id uint32) (*k8s.Endpoint, bool) Count(nodeType int) int }
func NewServersPolicyRoundRobin ¶
func NewServersPolicyRoundRobin() IServers
type ServersPolicyRoundRobin ¶
type ServersPolicyRoundRobin struct {
gomap.RoundRobinMap
}
func (*ServersPolicyRoundRobin) GetOne ¶
func (this *ServersPolicyRoundRobin) GetOne() (key, val interface{}, ok bool)
Click to show internal directories.
Click to hide internal directories.