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).
Click to show internal directories.
Click to hide internal directories.