rpc

package
v0.0.0-...-ac7c04d Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2018 License: MIT Imports: 6 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 {
	Debug bool
	// contains filtered or unexported fields
}

Client sends commands the Fastnetmon API

func NewClient

func NewClient(apiHost, apiUsername, apiPassword string, debug bool) *Client

NewClient creates a new client connection

func (*Client) RunCommand

func (c *Client) RunCommand(path string) ([]byte, error)

RunCommand requests a path from the API

func (*Client) RunCommandAndParse

func (c *Client) RunCommandAndParse(path string, obj interface{}) error

RunCommandAndParse makes an API request and parses the JSON result

Jump to

Keyboard shortcuts

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