changes

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2026 License: Apache-2.0 Imports: 7 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

Index

Constants

View Source
const RestlessAfter = 400 * time.Millisecond

Variables

View Source
var ErrLost = errors.New("lost the connection to the device agent")

Functions

func News

func News(e driver.Event, seq int64) bool

func SilentAfter

func SilentAfter() time.Duration

Types

type Source

type Source interface {
	Seq() int64
	Events() (<-chan driver.Event, func())
}

type Watch

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

func Subscribe

func Subscribe(src Source, silentAfter time.Duration, backoff bool) *Watch

func (*Watch) Stop

func (w *Watch) Stop()

func (*Watch) Wait

func (w *Watch) Wait(ctx context.Context, seq int64, deadline time.Time, early bool) (silent time.Duration, err error)

Jump to

Keyboard shortcuts

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