Documentation
¶
Index ¶
- type Factory
- type Storage
- func (s *Storage) Add(node pool.Node, limit int) error
- func (s *Storage) GetAll() ([]pool.Node, error)
- func (s *Storage) GetByAddress(address string) (pool.Node, error)
- func (s *Storage) GetBySession(sessionID string) (pool.Node, error)
- func (s *Storage) GetCountWithStatus(status *pool.NodeStatus) (int, error)
- func (s *Storage) Remove(node pool.Node) error
- func (s *Storage) ReserveAvailable(nodeList []pool.Node) (pool.Node, error)
- func (s *Storage) SetAvailable(node pool.Node) error
- func (s *Storage) SetBusy(node pool.Node, sessionID string) error
- func (s *Storage) UpdateAddress(node pool.Node, newAddress string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Factory ¶
type Factory struct { }
Source Files
¶
- factory.go
- storage.go
Click to show internal directories.
Click to hide internal directories.