client

package
v0.0.0-...-f18d4bb Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2020 License: MPL-2.0 Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HTTPRequest

func HTTPRequest(nClient *NitroClient, requestQuery string, requestType string, requestBody []byte) ([]byte, int, error)

Types

type NitroClient

type NitroClient struct {
	Protocol  string
	IpAddress string
	Mode      string
	User      string
	Password  string
	Debug     bool
}

Nitro Client

func NewNitroClient

func NewNitroClient(protocol string, ipAddress string, mode string, user string, password string, debug bool) *NitroClient

func (*NitroClient) Add

func (n *NitroClient) Add(req interface{}, options ...string) error

func (*NitroClient) Delete

func (n *NitroClient) Delete(req interface{}, resourceName string, options ...string) error

func (*NitroClient) Enable

func (n *NitroClient) Enable(req interface{}, enable bool) error

func (*NitroClient) Get

func (n *NitroClient) Get(res interface{}, resourceName string, options ...string) error

func (*NitroClient) Update

func (n *NitroClient) Update(req interface{}, options ...string) error

Jump to

Keyboard shortcuts

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