Help us shape the future of Go! Take the 2026 Go Developer Survey

system

package
v1.8.76 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterruptHandler

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

func NewInterruptHandler

func NewInterruptHandler() *InterruptHandler

func (*InterruptHandler) OnInterrupt

func (i *InterruptHandler) OnInterrupt(cb func())

type Monitor

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

func NewMonitor

func NewMonitor(seconds int) *Monitor

func (*Monitor) SetPingCallback

func (m *Monitor) SetPingCallback(cb func(counter int))

func (*Monitor) Start

func (m *Monitor) Start()

func (*Monitor) Stop

func (m *Monitor) Stop()

Jump to

Keyboard shortcuts

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