Documentation ¶
Index ¶
- Constants
- func ReadError(i io.Reader) error
- func WriteError(w io.Writer, r *http.Request, err error)
- type Client
- func (c *Client) Connect(nnid, enid int, eidx int) (*minigraph.Endpoint, error)
- func (c *Client) DeleteConfig(k string) error
- func (c *Client) DeleteEndpoints(k, v string) ([]*minigraph.Endpoint, error)
- func (c *Client) DeleteNetworks(k, v string) ([]*minigraph.Network, error)
- func (c *Client) Disconnect(nnid, enid int) (*minigraph.Endpoint, error)
- func (c *Client) GetConfig() (map[string]string, error)
- func (c *Client) GetEndpoint(k, v string) (*minigraph.Endpoint, error)
- func (c *Client) GetEndpoints(k, v string) ([]*minigraph.Endpoint, error)
- func (c *Client) GetNetworks(k, v string) ([]*minigraph.Network, error)
- func (c *Client) InsertEndpoints(e ...*minigraph.Endpoint) ([]*minigraph.Endpoint, error)
- func (c *Client) InsertNetworks(n ...*minigraph.Network) ([]*minigraph.Network, error)
- func (c *Client) Load(path string) error
- func (c *Client) Neighbors(k, v string) ([]minigraph.Node, error)
- func (c *Client) Save(path string) error
- func (c *Client) SetConfig(k, v string) error
- func (c *Client) UpdateEndpoints(e ...*minigraph.Endpoint) ([]*minigraph.Endpoint, error)
- func (c *Client) UpdateNetworks(n ...*minigraph.Network) ([]*minigraph.Network, error)
Constants ¶
View Source
const ( Port = 8000 EDGE_NONE = -1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) DeleteConfig ¶
func (*Client) DeleteEndpoints ¶
func (*Client) DeleteNetworks ¶
func (*Client) Disconnect ¶
func (*Client) GetEndpoint ¶
GetEndpoint wraps GetEndpoints and returns the first node that matches or an error if more than one node matches.
func (*Client) GetEndpoints ¶
GetEndpoints returns endpoints by search terms, or all endpoints. If k,v are empty, return all endpoints. If only v is set, do a freeform search on all endpoints, if k is set, search for v on the key k. Endpoints will be sorted by ID.
func (*Client) GetNetworks ¶
Get networks by search terms, or all networks. If k,v are empty, return all networks. If only v is set, do a freeform search on all networks, if k is set, search for v on the key k. Networks will be sorted by ID.
func (*Client) InsertEndpoints ¶
func (*Client) InsertNetworks ¶
func (*Client) UpdateEndpoints ¶
Click to show internal directories.
Click to hide internal directories.