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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) GetCountWithStatus ¶
func (s *Storage) GetCountWithStatus(status *pool.NodeStatus) (int, error)
func (*Storage) ReserveAvailable ¶
Click to show internal directories.
Click to hide internal directories.