Versions in this module Expand all Collapse all v0 v0.1.17 Apr 4, 2022 Changes in this version + func MD5(s string) string + type Client struct + BTAddress string + BTKey string + Timeout time.Duration + func NewClient(address string, key string, timeout ...time.Duration) *Client + func (this *Client) AddDomain(id int64, webname string, domain string) (RespMSG, error) + func (this *Client) AddSite(params *ReqAddSite) (RespAddSite, error) + func (this *Client) CloseHasPwd(id int64) (RespMSG, error) + func (this *Client) CloseLimitNet(id int64) (RespMSG, error) + func (this *Client) DelDomain(id int64, webname string, domain string, port int64) (RespMSG, error) + func (this *Client) DeleteSite(params *ReqDeleteSite) (RespMSG, error) + func (this *Client) DeleteSiteBackup(id int64) (RespMSG, error) + func (this *Client) GetDirUserINI(id int64, path string) (RespUserINI, error) + func (this *Client) GetDiskInfo() (DiskInfo, error) + func (this *Client) GetFile(path string) (RespGetFile, error) + func (this *Client) GetIndex(id int64) (string, error) + func (this *Client) GetLimitNet(id int64) (RespLimitNet, error) + func (this *Client) GetNetWork() (NetWork, error) + func (this *Client) GetPHPVersion() (PHPVersions, error) + func (this *Client) GetRewriteList(siteName string) (RewriteList, error) + func (this *Client) GetSiteBackups(params *ReqSiteBackups) (RespSiteBackups, error) + func (this *Client) GetSiteDomains(search int64) (SiteDomains, error) + func (this *Client) GetSites(params *ReqSites) (RespSites, error) + func (this *Client) GetSystemTotal() (SystemTotal, error) + func (this *Client) GetTaskCount() int + func (this *Client) GetUpdateStatus(check bool, force bool) (UpdateStatus, error) + func (this *Client) Raw(data map[string][]string, endpoint string) ([]byte, error) + func (this *Client) SetDirUserINI(path string) (RespMSG, error) + func (this *Client) SetFile(path string, body string) (RespMSG, error) + func (this *Client) SetHasPwd(id int64, user string, pwd string) (RespMSG, error) + func (this *Client) SetIndex(id int64, Index string) (RespMSG, error) + func (this *Client) SetLimitNet(id int64, perServer int64, perIP int64, limitRate int64) (RespMSG, error) + func (this *Client) SetLogsOpen(id int64) (RespMSG, error) + func (this *Client) SetPath(id int64, path string) (RespMSG, error) + func (this *Client) SetRunPath(id int64, path string) (RespMSG, error) + func (this *Client) SetSiteEdate(id int64, edate string) (RespMSG, error) + func (this *Client) SetSitePS(id int64, ps string) (RespMSG, error) + func (this *Client) SiteBackup(id int64) (RespMSG, error) + func (this *Client) StartSite(id int64, name string) (RespMSG, error) + func (this *Client) StopSite(id int64, name string) (RespMSG, error) + type DiskInfo []struct + type NetWork struct + CPU []interface{} + Disk []struct{ ... } + Down float64 + DownPackets int + DownTotal int64 + Load struct{ ... } + Mem struct{ ... } + Up float64 + UpPackets int + UpTotal int64 + Version string + type PHPVersions []struct + type ReqAddSite struct + Codeing string + DataPassword string + DataUser string + FTP bool + FTPPassword string + FTPUserName string + PS string + Path string + Port int64 + SQL bool + Type string + TypeID int64 + Version int64 + WebName struct{ ... } + type ReqDeleteSite struct + Database bool + FTP bool + ID int64 + Path bool + WebName string + type ReqSiteBackups struct + Limit int64 + P int64 + Search int64 + ToJS string + Type int64 + type ReqSites struct + Limit int64 + Order string + P int64 + Search string + ToJS string + Type int64 + type RespAddSite struct + DatabasePass string + DatabaseStatus bool + DatabaseUser string + FtpPass string + FtpStatus bool + FtpUser string + SiteStatus bool + type RespGetFile struct + Data string + Encoding string + Status bool + type RespLimitNet struct + LimitRate int + Perip int + Perserver int + type RespMSG struct + Msg string + Status bool + type RespSiteBackups struct + Data []struct{ ... } + Page string + Where string + type RespSites struct + Data []struct{ ... } + Page string + Where string + type RespUserINI struct + Logs bool + Pass bool + RunPath struct{ ... } + Userini bool + type RewriteList struct + Rewrites []string + type SiteDomains []struct + type SiteTypes []struct + type SystemTotal struct + CPUNum int + CPURealUsed float64 + Isuser int + MemBuffers int + MemCached int + MemFree int + MemRealUsed int + MemTotal int + System string + Time string + Version string + type UpdateStatus struct + Status bool + UpdateMsg string + Version string