Versions in this module Expand all Collapse all v0 v0.3.1 Sep 30, 2022 v0.3.0 Jul 18, 2022 Changes in this version + const APIBaseURL + type APIClient struct + Debug bool + Key string + KnownPackages map[int]PackageDetails + func NewAPIClient(key string) *APIClient + func NewCustomClient(key string, client *http.Client) *APIClient + func (api *APIClient) AddAuthIP(ip net.IP, packageID int) (AddAuthIPResponse, error) + func (api *APIClient) AddCurrentIPtoAllPackages() (success int) + func (api *APIClient) DeleteAllAuthIPs() (int, error) + func (api *APIClient) DeleteAuthIPByID(ipID int) (ok bool) + func (api *APIClient) DeleteAuthIPByIP(ipa net.IP) (err error) + func (api *APIClient) DeleteOtherAuthIPs() ([]int, error) + func (api *APIClient) GetAllSOCKSIPsAndPorts() ([]string, error) + func (api *APIClient) GetAuthIPs() ([]AuthIP, error) + func (api *APIClient) GetPackageSOCKS(packageid int) ([]string, error) + func (api *APIClient) GetProxyPackages() ([]UserPackage, error) + type AddAuthIPResponse struct + Data struct{ ... } + Message string + Success bool + type AuthIP struct + ID interface{} + IP string + UserpackageID int + type AuthIPResponse struct + AuthIPData []AuthIP + Message string + Pages pagination + Success bool + type DelAuthIPResponse struct + Success bool + type Package struct + AllTimeStats PackageStatistics + AuthIPs []AuthIP + HourlyStats map[time.Time]PackageStatistics + ID int + type PackageDetails struct + Bandwidth int64 + HowmanyAuthips int + HowmanyIPs int + IPType int + Name string + PackageType string + Price interface{} + PricePerGig interface{} + PriceUserFormatted string + type PackageResponse struct + Message string + PackageData []UserPackage + Pages pagination + Success bool + type PackageStatistics struct + BndHTTP int + BndSocks int + BndTotal int + ConnHTTP int + ConnSocks int + ConnTotal int + Date string + UserpackageID int + type UserPackage struct + AdditionalBandwidthGb float64 + Bandwidth int64 + BandwidthGb float64 + BandwidthPercentLeftHuman string + CustomName interface{} + ExpirationDateHuman string + Expires time.Time + ID int + Login string + LowBanwidthNotificationPercent int + Name string + Package PackageDetails + Password string