Documentation
¶
Index ¶
- Constants
- type Client
- func (c *Client) BlockEmail(email, data string) error
- func (c *Client) CheckSubdomainOwnership(subname, userid string) (bool, error)
- func (c *Client) CheckToasterOwnership(userid, toasterid string) (bool, error)
- func (c *Client) CreateSubDomain(sub *model.SubDomain) error
- func (c *Client) CreateToaster(toaster *model.Toaster) error
- func (c *Client) CreateUser(usr *model.User) error
- func (c *Client) DelCertificate(domain string) error
- func (c *Client) DelToaster(userid, toasterid string) error
- func (c *Client) DelUser(userid string) error
- func (c *Client) DeleteAllSubDomainFromUser(userid string) error
- func (c *Client) DeleteSubDomain(userid, subdomainid string) error
- func (c *Client) GetAllUserStatistics(userid string) ([]*model.UserStatistics, error)
- func (c *Client) GetCertificate(domain string) (*model.Certificate, error)
- func (c *Client) GetLinkedSubDomains(toasterid string) ([]*model.SubDomain, error)
- func (c *Client) GetSubDomain(userid, subdomainid string) (*model.SubDomain, error)
- func (c *Client) GetUserByEmail(email string) (*model.User, error)
- func (c *Client) GetUserByID(userid string) (*model.User, error)
- func (c *Client) GetUserByUsername(username string) (*model.User, error)
- func (c *Client) GetUserStatistics(userid, monthyear string) (*model.UserStatistics, error)
- func (c *Client) GetUserToaster(userid, toasterid string) (*model.Toaster, error)
- func (c *Client) IncrUserStatistics(stat *model.UserStatistics) error
- func (c *Client) IsEmailBlocked(email string) (bool, error)
- func (c *Client) ListUserSubdomains(userid string) ([]*model.SubDomain, error)
- func (c *Client) ListUsertoasters(userid string) ([]*model.Toaster, error)
- func (c *Client) RangeUsers(limit int, cursor string) (string, bool, []model.User, error)
- func (c *Client) SubdomainExists(name string) (bool, error)
- func (c *Client) UnlinkAllSubdomainsFromToaster(userid, toasterid string) error
- func (c *Client) UpdateSubDomain(sub *model.SubDomain) error
- func (c *Client) UpdateToaster(toaster *model.Toaster) error
- func (c *Client) UpdateUser(usr *model.User) error
- func (c *Client) UpsertCertificate(cert *model.Certificate) error
- func (c *Client) UpsertUserStatistics(stat *model.UserStatistics) error
- func (c *Client) UserExistsByEmail(email string) (bool, error)
- func (c *Client) UserExistsByUsername(username string) (bool, error)
Constants ¶
View Source
const MigrateTimeFormat = "2006-01-02-15-04"
MigrateTimeFormat defines the timeformat as required in c.db.migrate scripts
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) BlockEmail ¶
func (*Client) CheckSubdomainOwnership ¶
func (*Client) CheckToasterOwnership ¶
func (*Client) CreateSubDomain ¶
CreateSubdomain will return ErrAlreadyExists for already attributed subdomains
func (*Client) DelCertificate ¶
func (*Client) DelToaster ¶
func (*Client) DeleteAllSubDomainFromUser ¶
func (*Client) DeleteSubDomain ¶
func (*Client) GetAllUserStatistics ¶
func (c *Client) GetAllUserStatistics(userid string) ([]*model.UserStatistics, error)
func (*Client) GetCertificate ¶
func (c *Client) GetCertificate(domain string) (*model.Certificate, error)
func (*Client) GetLinkedSubDomains ¶
func (*Client) GetSubDomain ¶
func (*Client) GetUserByUsername ¶
func (*Client) GetUserStatistics ¶
func (c *Client) GetUserStatistics(userid, monthyear string) (*model.UserStatistics, error)
func (*Client) GetUserToaster ¶
func (*Client) IncrUserStatistics ¶
func (c *Client) IncrUserStatistics(stat *model.UserStatistics) error
func (*Client) ListUserSubdomains ¶
func (*Client) ListUsertoasters ¶
func (*Client) RangeUsers ¶
func (*Client) UnlinkAllSubdomainsFromToaster ¶
func (*Client) UpsertCertificate ¶
func (c *Client) UpsertCertificate(cert *model.Certificate) error
func (*Client) UpsertUserStatistics ¶
func (c *Client) UpsertUserStatistics(stat *model.UserStatistics) error
Click to show internal directories.
Click to hide internal directories.