Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoRoute = fmt.Errorf("unable to route")
Functions ¶
This section is empty.
Types ¶
type ConnInstance ¶
type ConnInstance struct {
// contains filtered or unexported fields
}
func (*ConnInstance) RegisterPing ¶
func (c *ConnInstance) RegisterPing(conn net.Conn)
func (*ConnInstance) RegisterPingUDP ¶
func (c *ConnInstance) RegisterPingUDP(addr *net.UDPAddr)
func (*ConnInstance) StopTCP ¶
func (c *ConnInstance) StopTCP()
type MockConnInstance ¶
type MockConnInstance struct { RegisterPingFunc func(conn net.Conn) StopTCPFunc func() RegisterPingUDPFunc func(addr *net.UDPAddr) WriteUDPFunc func(pkt packet.TcpPacket) error WriteTCPFunc func(pkt packet.TcpPacket) error }
func (MockConnInstance) RegisterPing ¶
func (m MockConnInstance) RegisterPing(conn net.Conn)
func (MockConnInstance) StopTCP ¶
func (m MockConnInstance) StopTCP()
type Store ¶
func New ¶
func New(nodes node_store.Store, lb loadbalancer.LoadBalancer) Store
type StoreInstance ¶
type StoreInstance struct {
// contains filtered or unexported fields
}
func (*StoreInstance) Get ¶
func (s *StoreInstance) Get(ip string) Conn
func (*StoreInstance) New ¶
func (s *StoreInstance) New(ip string) Conn
func (*StoreInstance) Stop ¶
func (s *StoreInstance) Stop(ip string)
Click to show internal directories.
Click to hide internal directories.