polling

package
v0.0.0-...-f1068a2 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClients

func SetClients(clis *clients.Clients)

SetClients sets a pool of clients for passing into OnPoll

func Start

func Start() error

Start polling already existing services

func StartPolling

func StartPolling(service types.Service) error

StartPolling begins a polling loop for this service. If one already exists for this service, it will be instructed to die. The new poll will not wait for this to happen, so there may be a brief period of overlap. It is safe to immediately call `StopPolling(service)` to immediately terminate this poll.

func StopPolling

func StopPolling(service types.Service)

StopPolling stops all pollers for this service.

Types

This section is empty.

Jump to

Keyboard shortcuts

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