client

package module
v0.0.0-...-b9d7322 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2019 License: BSD-3-Clause Imports: 7 Imported by: 0

README

UniFi Go Client

GoDoc CI Workflow Code Coverage Go Report Card

A Go client for the Ubiquiti UniFi Controller.

Requirements

  • Go v1.13+

Contributing

The UniFi Controller client is not feature complete, so help is greatly appreciated. See the contribution guidelines for details.

License

The UniFi Controller client is licensed under the BSD 3-Clause License.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadResponse

func ReadResponse(r io.Reader) (json.RawMessage, error)

ReadResponse reads a JSON response.

Types

type Client

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

Client represents a UniFi client connection.

func New

func New(opts ...option.ClientOption) (*Client, error)

New creates a new client.

type Error

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

Error represents an API error.

func (*Error) Error

func (e *Error) Error() string

Error returns a formatted error.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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