polling

package
v0.2.8-dev03 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EventListener

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

func NewEventListener

func NewEventListener(stateKey string, portClient *cli.PortClient) *EventListener

func (*EventListener) Run

func (l *EventListener) Run(resync func()) error

type Handler

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

func NewPollingHandler

func NewPollingHandler(pollingRate uint, stateKey string, portClient *cli.PortClient, tickerOverride ITicker) *Handler

func (*Handler) Run

func (h *Handler) Run(resync func())

type ITicker

type ITicker interface {
	GetC() <-chan time.Time
}

type Ticker

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

func NewTicker

func NewTicker(d time.Duration) *Ticker

func (*Ticker) GetC

func (t *Ticker) GetC() <-chan time.Time

func (*Ticker) Stop

func (t *Ticker) Stop()

Jump to

Keyboard shortcuts

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