ndnetapi

package
v0.0.0-...-0c16df0 Latest Latest
Warning

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

Go to latest
Published: Sep 13, 2019 License: MIT Imports: 7 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	AN = "ndnetapi "
)

Functions

This section is empty.

Types

type Client

type Client struct {
	Name     string
	Endpoint string
	Config   *Config // for debug only
}

func ClientAlloc

func ClientAlloc(configFile string) (c *Client, err error)

func (*Client) CreateInterface

func (c *Client) CreateInterface(name string) (err error)

func (*Client) CreateNetwork

func (c *Client) CreateNetwork(name string) (err error)

func (*Client) DeleteInterface

func (c *Client) DeleteInterface(name string) (err error)

func (*Client) DeleteNetwork

func (c *Client) DeleteNetwork(name string) (err error)

func (*Client) GetInterface

func (c *Client) GetInterface(name string) (err error)

func (*Client) Join

func (c *Client) Join(name string) (err error)

func (*Client) Leave

func (c *Client) Leave(name string) (err error)

func (*Client) ListNetworks

func (c *Client) ListNetworks() (nlist []string, err error)

func (*Client) Request

func (c *Client) Request(method, endpoint string, data map[string]interface{}) (body []byte, err error)

type Config

type Config struct {
	Name         string
	BridgePrefix string
	NedgeHost    string
	NedgePort    int
}

func ReadParseConfig

func ReadParseConfig(fname string) (Config, error)

Jump to

Keyboard shortcuts

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