client

package
v0.0.0-...-8e83ccd Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2014 License: BSD-3-Clause Imports: 9 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotFound = errors.New("strowger: route not found")

Functions

This section is empty.

Types

type Client

type Client interface {
	CreateRoute(*strowger.Route) error
	SetRoute(*strowger.Route) error
	DeleteRoute(id string) error
	GetRoute(id string) (*strowger.Route, error)
	ListRoutes(parentRef string) ([]*strowger.Route, error)
	Close() error
}

func New

func New() (Client, error)

func NewWithDiscoverd

func NewWithDiscoverd(name string, dc dialer.DiscoverdClient) Client

type HTTPError

type HTTPError struct {
	Response *http.Response
}

func (HTTPError) Error

func (e HTTPError) Error() string

Jump to

Keyboard shortcuts

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