slavedriver

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2022 License: Apache-2.0 Imports: 10 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) 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) 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
}

type SlaveTrader

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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