Documentation ¶
Overview ¶
Package client provides a client for the router API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("router: route not found")
ErrNotFound is returned when no route was found.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client interface { // StreamEvents streams router events with the given options StreamEvents(opts *router.StreamEventsOptions, output chan *router.StreamEvent) (stream.Stream, error) }
Client is a client for the router API.
func NewWithAddr ¶
NewWithAddr uses addr as the specified API url and returns a client.
func NewWithHTTP ¶
NewWithHTTP does the same thing as New but uses the given *http.Client
Click to show internal directories.
Click to hide internal directories.