daemon

package
v0.7.7 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2024 License: MIT Imports: 35 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ControlJobEndpointPProf   string = "/debug/pprof"
	ControlJobEndpointVersion string = "/version"
	ControlJobEndpointStatus  string = "/status"
	ControlJobEndpointSignal  string = "/signal"
)

Variables

View Source
var DaemonCmd = &cli.Subcommand{
	Use:   "daemon",
	Short: "run the zrepl daemon",
	Run: func(ctx context.Context, subcommand *cli.Subcommand, args []string) error {
		return Run(ctx, subcommand.Config())
	},
}

Functions

func IsInternalJobName

func IsInternalJobName(s string) bool

func NewPProfServer

func NewPProfServer(ctx context.Context) *pprofServer

func Run

func Run(ctx context.Context, conf *config.Config) error

Types

type GlobalStatus added in v0.7.4

type GlobalStatus struct {
	ZFSCmds   *zfscmd.Report
	Envconst  *envconst.Report
	OsEnviron []string
}

type Logger

type Logger = logger.Logger

type PprofServerControlMsg

type PprofServerControlMsg struct {
	// Whether the server should listen for requests on the given address
	Run bool
	// Must be set if Run is true, undefined otherwise
	HttpListenAddress string
}

type Status added in v0.7.4

type Status struct {
	Jobs   map[string]*job.Status
	Global GlobalStatus
}

Directories

Path Synopsis
Package hooks implements pre- and post snapshot hooks.
Package hooks implements pre- and post snapshot hooks.
job
trace
package trace provides activity tracing via ctx through Tasks and Spans
package trace provides activity tracing via ctx through Tasks and Spans

Jump to

Keyboard shortcuts

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