client

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

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

Go to latest
Published: Aug 14, 2020 License: LGPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client is an http client for the http api backend

func NewClient

func NewClient(addr string) *Client

NewClient creates a new instance of the client

func (*Client) PeersAdd

func (c *Client) PeersAdd(peerid string) error

PeersAdd adds a new peer

func (*Client) PeersInfo

func (c *Client) PeersInfo(peerid string) (map[string]interface{}, error)

PeersInfo returns specific info about one peer

func (*Client) PeersList

func (c *Client) PeersList() ([]string, error)

PeersList returns a list of peers

Jump to

Keyboard shortcuts

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