servicecontrol

package
v0.7.0-rc.9 Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2026 License: AGPL-3.0 Imports: 1 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package servicecontrol defines the services and actions managed by the node.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Unit

func Unit(service string) string

Unit keeps control, observations and logs on the same unit. Debian's Tor wrapper can remain active after the default worker has stopped.

Types

type Completion

type Completion struct {
	Unit   string `json:"unit"`
	Action string `json:"action"`
	State  string `json:"state"`
}

Completion is evidence of a postcondition, not daemon or network readiness.

type Request

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

func New

func New(service, action string) (Request, error)

func (Request) Action

func (r Request) Action() string

func (Request) Service

func (r Request) Service() string

func (Request) Unit

func (r Request) Unit() string

func (Request) Verify

func (r Request) Verify(c Completion) error

Jump to

Keyboard shortcuts

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