watchdog

package
v0.1.0-alpha Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2022 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

DSUL - Disturb State USB Light : Watchdog module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Watchdog

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

func NewCallbackTimer

func NewCallbackTimer(interval time.Duration, callback func()) *Watchdog

func NewChannelTimer

func NewChannelTimer(interval time.Duration) *Watchdog

func (*Watchdog) Channel

func (w *Watchdog) Channel() <-chan time.Time

func (*Watchdog) Kick

func (w *Watchdog) Kick()

func (*Watchdog) Stop

func (w *Watchdog) Stop()

Jump to

Keyboard shortcuts

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