unifi

package
v0.0.0-...-4811bbc Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2017 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const USERAGENT string = "github.com/sequoiia/unifi-proper-portal - @theSequoiia"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	Config *ClientConfig
	// contains filtered or unexported fields
}

func NewClient

func NewClient(cc *ClientConfig) *Client

func (*Client) AuthoriseGuest

func (c *Client) AuthoriseGuest(data model.UniFiGuestAuthoriseRequest) error

func (*Client) GetVouchers

func (c *Client) GetVouchers() ([]model.UniFiVoucherResponse, error)

func (*Client) Login

func (c *Client) Login() error

func (*Client) RemoveVoucher

func (c *Client) RemoveVoucher(voucherId string) error

func (*Client) UnauthoriseGuest

func (c *Client) UnauthoriseGuest(data model.UniFiGuestUnauthoriseRequest) error

type ClientConfig

type ClientConfig struct {
	Username        string
	Password        string
	UniFiBaseUrlRaw string
	UniFiBaseUrl    *url.URL
	Site            string
	InsecureMode    bool
}

Jump to

Keyboard shortcuts

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