local

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2018 License: MIT Imports: 6 Imported by: 4

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

Jump to

Keyboard shortcuts

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