...
Package polling
In the call graph viewer below, each node
is a function belonging to this package
and its children are the functions it
calls—perhaps dynamically.
The root nodes are the entry points of the
package: functions that may be called from
outside the package.
There may be non-exported or anonymous
functions among them if they are called
dynamically from another package.
Click a node to visit that function's source code.
From there you can visit its callers by
clicking its declaring func
token.
Functions may be omitted if they were
determined to be unreachable in the
particular programs or tests that were
analyzed.
func SetClients(clis *clients.Clients)
SetClients sets a pool of clients for passing into OnPoll
func Start() error
Start polling already existing services
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(service types.Service)
StopPolling stops all pollers for this service.