replicator

package
v0.0.51 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2024 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RepOptFunc added in v0.0.51

type RepOptFunc func(*ReplicatorOpts) error

typedef of function that will be used to set the options for a Replicator.

type Replicator added in v0.0.51

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

func NewReplicator added in v0.0.51

func NewReplicator(optFuncs ...RepOptFunc) (replicator *Replicator, err error)

function designed to initialize and return a new replicator.

func (*Replicator) Replicate added in v0.0.51

func (r *Replicator) Replicate() (err error)

function designed to replicate the currently running process. this will spawn a new, detached, process, allowing it to continue running even after the current process has exited.

type ReplicatorOpts added in v0.0.51

type ReplicatorOpts struct {
	// name of the program (full path) to replicate.
	ProgramName string
	// command-line arguments to pass to the process.
	Args []string
}

Jump to

Keyboard shortcuts

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