local

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2019 License: MIT Imports: 6 Imported by: 6 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
}

func (*Factory) Create

func (f *Factory) Create(cfg config.Config) (pool.StorageInterface, error)

type Storage

type Storage struct {
	// contains filtered or unexported fields
}

func (*Storage) Add

func (s *Storage) Add(node pool.Node, limit int) error

func (*Storage) GetAll

func (s *Storage) GetAll() ([]pool.Node, error)

func (*Storage) GetByAddress

func (s *Storage) GetByAddress(address string) (pool.Node, error)

func (*Storage) GetBySession

func (s *Storage) GetBySession(sessionID string) (pool.Node, error)

func (*Storage) GetCountWithStatus

func (s *Storage) GetCountWithStatus(status *pool.NodeStatus) (int, error)

func (*Storage) Remove

func (s *Storage) Remove(node pool.Node) error

func (*Storage) ReserveAvailable

func (s *Storage) ReserveAvailable(nodeList []pool.Node) (pool.Node, error)

func (*Storage) SetAvailable

func (s *Storage) SetAvailable(node pool.Node) error

func (*Storage) SetBusy

func (s *Storage) SetBusy(node pool.Node, sessionID string) error

func (*Storage) UpdateAddress added in v0.4.0

func (s *Storage) UpdateAddress(node pool.Node, newAddress string) error

Jump to

Keyboard shortcuts

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