proc

package
v0.0.0-...-72177e3 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExecUserType

type ExecUserType int
const (
	UserRestricted ExecUserType = iota
	UserPrivileged
)

type Option

type Option func(p *Proc)

func Args

func Args(args ...string) Option

func Restart

func Restart(restart RestartPolicy) Option

func RestartDelay

func RestartDelay(d time.Duration) Option

func RestartRandomDelay

func RestartRandomDelay() Option

func UserType

func UserType(userType ExecUserType) Option

type Proc

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

func NewProc

func NewProc(execPath string, options ...Option) Proc

func (Proc) Start

func (p Proc) Start()

type RestartPolicy

type RestartPolicy int
const (
	RestartAlways RestartPolicy = iota
	RestartOnFailure
	RestartNever
)

Jump to

Keyboard shortcuts

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