client

package
v0.0.0-...-178a051 Latest Latest
Warning

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

Go to latest
Published: May 5, 2015 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RestClient

type RestClient struct {
	Hostname string //hostname of REST server
}

RestClient makes REST requests as part of the CLI UI.

func (*RestClient) GetResource

func (r *RestClient) GetResource(resource string) error

GetResource tells the peer to request the resource in the 'resource' parameter.

func (*RestClient) Ping

func (r *RestClient) Ping() (string, error)

Ping tests basic connection to the server. Returns what the server said (as text).

func (*RestClient) Resource

func (r *RestClient) Resource(resource string) (string, error)

Resource sends a request to the server for the provided resource string. Returns what the server said (as text).

Jump to

Keyboard shortcuts

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