system

package
v0.0.0-...-7439e74 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartAll

func StartAll(ss ...*System) error

func StopAll

func StopAll(ss ...*System)

Types

type Flag

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

func NewFlag

func NewFlag(val bool) *Flag

func (*Flag) Get

func (f *Flag) Get() bool

func (*Flag) Set

func (f *Flag) Set(val bool)

type System

type System interface {
	Start() error
	Stop()
	Running() bool
	Exec(onComplete func())
}

Jump to

Keyboard shortcuts

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