metricserver

package
v0.0.0-...-957f62e Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2023 License: Apache-2.0, MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const BinaryName = "metricserver"

BinaryName is the name of the embedded binary.

Variables

This section is empty.

Functions

func Exec

func Exec(options Options) error

Exec execs the embedded binary. The current process is replaced. This function only returns if unsuccessful.

func ForkExec

func ForkExec(options Options) (int, error)

ForkExec runs the embedded binary in a separate process. Returns the PID of the child process.

Types

type Options

type Options struct {
	// Argv is the set of arguments to exec with.
	// `Argv[0]` is the name of the binary as invoked.
	// If Argv is empty, it will default to a single-element slice, with
	// `Argv[0]` being the binary name.
	Argv []string

	// Envv is the set of environment variables to pass to the executed process.
	Envv []string

	// Files is the set of file descriptors to pass to forked processes.
	// Only used when forking, not pure exec'ing.
	Files []uintptr
}

Options is the set of options to execute the embedded binary.

Jump to

Keyboard shortcuts

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