util

package
v1.0.11 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Debounce

func Debounce(haltCtx context.Context, wait time.Duration) (chan<- interface{}, <-chan DebounceEvent)

Debounce returns two channels for (dirty) input and (clean) output.

func PassThrough

func PassThrough(haltCtx context.Context) (chan<- interface{}, <-chan DebounceEvent)

PassThrough will pipe (dirty) input directly to (clean) output without debouncing.

Types

type ArrayFlags

type ArrayFlags []string

func (*ArrayFlags) Set

func (r *ArrayFlags) Set(value string) error

func (*ArrayFlags) String

func (r *ArrayFlags) String() string

type DebounceEvent

type DebounceEvent struct {
	Counter int64
	Data    interface{}
}

DebounceEvent contains the last event fired to the input channel

type Notification

type Notification struct {
	Message   string
	Delay     time.Duration
	Immediate bool
}

Notification constructs the title and message for the toast notification

Jump to

Keyboard shortcuts

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