Documentation ¶
Index ¶
- type CP
- func (cp *CP) Cpanel(module string, function string, username string, params ...map[string]string) ([]gjson.Result, error)
- func (cp *CP) CreateAccount(domain string, username string, password string) ([]gjson.Result, error)
- func (cp *CP) GetDomainInfo() ([]gjson.Result, error)
- func (cp *CP) ListAccounts() ([]gjson.Result, error)
- func (cp *CP) ListUsers() ([]gjson.Result, error)
- func (cp *CP) RemoveAccount(username string) ([]gjson.Result, error)
- type Maps
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CP ¶
type CP struct { Protocol string `valid:"required~Protocol not found!"` WHMHostname string `valid:"required~Hostname not found!"` WHMPort string `valid:"required~Port not found!,int"` WHMUsername string `valid:"required~Username not found!"` WHMAuthKey string `valid:"required~Auth Key not found!"` Format string `valid:"required~Format not found!"` APIVersion string `valid:"-"` }
func (*CP) CreateAccount ¶
Click to show internal directories.
Click to hide internal directories.