slavedriver

package
v0.3.4 Latest Latest
Warning

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

Go to latest
Published: Apr 29, 2024 License: Apache-2.0 Imports: 12 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Slave

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

func (*Slave) Destroy

func (slave *Slave) Destroy()

func (*Slave) GetClient

func (slave *Slave) GetClient() *srpc.Client

func (*Slave) GetClientAddress added in v0.3.3

func (slave *Slave) GetClientAddress() string

func (*Slave) Release

func (slave *Slave) Release()

func (*Slave) String

func (slave *Slave) String() string

type SlaveDriver

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

func NewSlaveDriver

func NewSlaveDriver(options SlaveDriverOptions, slaveTrader SlaveTrader,
	logger log.DebugLogger) (*SlaveDriver, error)

func (*SlaveDriver) GetSlave

func (driver *SlaveDriver) GetSlave() (*Slave, error)

func (*SlaveDriver) GetSlaveWithTimeout added in v0.3.3

func (driver *SlaveDriver) GetSlaveWithTimeout(timeout time.Duration) (
	*Slave, error)

func (*SlaveDriver) ReplaceIdle added in v0.3.3

func (driver *SlaveDriver) ReplaceIdle(immediateGetNew bool)

func (*SlaveDriver) WriteHtml

func (driver *SlaveDriver) WriteHtml(writer io.Writer)

type SlaveDriverOptions

type SlaveDriverOptions struct {
	DatabaseFilename  string
	MaximumIdleSlaves uint
	MinimumIdleSlaves uint
	PortNumber        uint
	Purpose           string
}

type SlaveInfo

type SlaveInfo struct {
	Identifier string
	IpAddress  net.IP
}

func (SlaveInfo) String added in v0.3.3

func (si SlaveInfo) String() string

type SlaveTrader

type SlaveTrader interface {
	Close() error
	CreateSlave() (SlaveInfo, error)
	DestroySlave(identifier string) error
}

type SlaveTraderAcknowledger added in v0.3.4

type SlaveTraderAcknowledger interface {
	CreateSlaveWithAcknowledger(<-chan chan<- error) (SlaveInfo, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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