rrdtool

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PoolOptions

type PoolOptions struct {
	RemoteControlOptions RemoteControlOptions
	MaxSize              int
	AttritionDelay       time.Duration
}

type RemoteControl

type RemoteControl struct {
	OnStdout func([]byte)
	// contains filtered or unexported fields
}

func StartRemoteControl

func StartRemoteControl(ctx context.Context, opts RemoteControlOptions) (*RemoteControl, error)

func (*RemoteControl) Close

func (rc *RemoteControl) Close() error

func (*RemoteControl) Kill

func (rc *RemoteControl) Kill() error

func (*RemoteControl) RunCommand

func (rc *RemoteControl) RunCommand(args []string) error

func (*RemoteControl) Signal

func (rc *RemoteControl) Signal(sig os.Signal) error

type RemoteControlOptions

type RemoteControlOptions struct {
	CommandTimeout time.Duration
	Stderr         *os.File
	OnStdout       func([]byte)
	LaunchCommand  []string
}

type RemoteControlPool

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

func NewPool

func NewPool(ctx context.Context, opts PoolOptions) *RemoteControlPool

func (*RemoteControlPool) Close

func (p *RemoteControlPool) Close()

func (*RemoteControlPool) Get

func (p *RemoteControlPool) Get() (*RemoteControl, error)

func (*RemoteControlPool) Recycle

func (p *RemoteControlPool) Recycle(rc *RemoteControl)

Jump to

Keyboard shortcuts

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