Documentation
¶
Index ¶
- type Basic
- type BillRecord
- type DashboardHandler
- func (d *DashboardHandler) GetBasic() (*Basic, error)
- func (d *DashboardHandler) GetBill(page int) ([]BillRecord, error)
- func (d *DashboardHandler) GetDevice() ([]Device, error)
- func (d *DashboardHandler) GetPackage() (*Package, error)
- func (d *DashboardHandler) GetRecharge(page int) ([]RechargeRecord, error)
- func (d *DashboardHandler) GetUsageRecords(page int) ([]UsageRecord, error)
- func (d *DashboardHandler) Login(account *model.Account) error
- type Device
- type IpgwHandler
- func (h *IpgwHandler) FetchUsageInfo() error
- func (h *IpgwHandler) GetClient() *http.Client
- func (h *IpgwHandler) GetInfo() *model.Info
- func (h *IpgwHandler) IsConnectedAndLoggedIn() (connected bool, loggedIn bool)
- func (h *IpgwHandler) Kick(sid string) (bool, error)
- func (h *IpgwHandler) Login(account *model.Account) error
- func (h *IpgwHandler) Logout() error
- func (h *IpgwHandler) NEUAuth(username, password string) error
- func (h *IpgwHandler) ParseBasicInfo() error
- type Package
- type RechargeRecord
- type StoreHandler
- type UpdateHandler
- type UsageRecord
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BillRecord ¶
type DashboardHandler ¶
type DashboardHandler struct {
// contains filtered or unexported fields
}
func NewDashboardHandler ¶
func NewDashboardHandler() *DashboardHandler
func (*DashboardHandler) GetBasic ¶
func (d *DashboardHandler) GetBasic() (*Basic, error)
func (*DashboardHandler) GetBill ¶
func (d *DashboardHandler) GetBill(page int) ([]BillRecord, error)
func (*DashboardHandler) GetDevice ¶
func (d *DashboardHandler) GetDevice() ([]Device, error)
func (*DashboardHandler) GetPackage ¶
func (d *DashboardHandler) GetPackage() (*Package, error)
func (*DashboardHandler) GetRecharge ¶
func (d *DashboardHandler) GetRecharge(page int) ([]RechargeRecord, error)
func (*DashboardHandler) GetUsageRecords ¶
func (d *DashboardHandler) GetUsageRecords(page int) ([]UsageRecord, error)
type IpgwHandler ¶
type IpgwHandler struct {
// contains filtered or unexported fields
}
func NewIpgwHandler ¶
func NewIpgwHandler() *IpgwHandler
func (*IpgwHandler) FetchUsageInfo ¶
func (h *IpgwHandler) FetchUsageInfo() error
func (*IpgwHandler) GetClient ¶
func (h *IpgwHandler) GetClient() *http.Client
func (*IpgwHandler) GetInfo ¶
func (h *IpgwHandler) GetInfo() *model.Info
func (*IpgwHandler) IsConnectedAndLoggedIn ¶ added in v0.1.1
func (h *IpgwHandler) IsConnectedAndLoggedIn() (connected bool, loggedIn bool)
func (*IpgwHandler) Logout ¶
func (h *IpgwHandler) Logout() error
func (*IpgwHandler) NEUAuth ¶ added in v0.2.0
func (h *IpgwHandler) NEUAuth(username, password string) error
func (*IpgwHandler) ParseBasicInfo ¶ added in v0.1.3
func (h *IpgwHandler) ParseBasicInfo() error
type RechargeRecord ¶
type StoreHandler ¶
func NewStoreHandler ¶
func NewStoreHandler(path string) (*StoreHandler, error)
func (*StoreHandler) Load ¶
func (h *StoreHandler) Load() error
func (*StoreHandler) Persist ¶
func (h *StoreHandler) Persist() error
type UpdateHandler ¶
type UpdateHandler struct {
// contains filtered or unexported fields
}
func NewUpdateHandler ¶
func NewUpdateHandler() *UpdateHandler
func (*UpdateHandler) CheckLatestVersion ¶
func (u *UpdateHandler) CheckLatestVersion() (bool, error)
CheckLatestVersion returns true when there is a newer version
func (*UpdateHandler) Update ¶
func (u *UpdateHandler) Update() error
Click to show internal directories.
Click to hide internal directories.