Versions in this module Expand all Collapse all v1 v1.0.3 Mar 31, 2024 v1.0.2 Mar 31, 2024 Changes in this version + type Client struct + Credentials credentials.Credentials + Url *url.URL + func NewClient(username string, password string, url *url.URL) *Client + func (c *Client) AddVoucher(v *voucher.Voucher) error + func (c *Client) FetchVouchers() (UnifiVouchers, error) + func (c *Client) Login() error + type LoginResponse struct + Data []interface{} + Meta Meta + type Meta struct + Rc string + type RequestNewVoucherResponse struct + Data []struct{ ... } + Meta struct{ ... } + type UnifiVoucher struct + AdminName string + Code string + CreateTime int64 + Duration int + ForHotspot bool + ID string + Note string + QosOverwrite bool + Quota int + SiteID string + Status string + StatusExpires int + Used int + type UnifiVouchers []UnifiVoucher + type VoucherListResponse struct + Data UnifiVouchers + Meta Meta