poller

package
v1.7.2 Latest Latest
Warning

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

Go to latest
Published: May 3, 2019 License: MIT Imports: 11 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Result(context.Context, *msg.QueryResult) Requests
}

type HandlerFunc

type HandlerFunc func(context.Context, *msg.QueryResult) Requests

func (HandlerFunc) Result

func (f HandlerFunc) Result(ctx context.Context, results *msg.QueryResult) Requests

type Poller

type Poller interface {
	Poll(ctx context.Context, requests Requests, fn Handler)
	Flags() []cli.Flag
	Once() bool
}

func New

func New(debug, rest, trace *bool, clients clients.Clients) Poller

type Requests

type Requests map[string]string

Requests is a map of request id to url

Jump to

Keyboard shortcuts

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