Versions in this module Expand all Collapse all v0 v0.0.2 Jun 7, 2020 v0.0.1 May 29, 2020 Changes in this version + const CADirURL + const DefaultRenewAt + var ErrInvalidDomains = errors.New("invalid domains") + var ErrInvalidEmail = errors.New("email required") + func ValidDomains(domains []string) bool + type Certificate struct + ACMEEmail string + ACMEKey *ecdsa.PrivateKey + ACMERegistration *registration.Resource + CertStableURL string + CertURL string + Certificate []byte + CommonName string + Domains []string + Expiry time.Time + ID string + Issued bool + IssuerCertificate []byte + LastError error + ModTime time.Time + PrivateKey []byte + RenewAt int + Secret string + func NewCertificate(domains []string, email string) (*Certificate, error) + func (c *Certificate) GetEmail() string + func (c *Certificate) GetPrivateKey() crypto.PrivateKey + func (c *Certificate) GetRegistration() *registration.Resource + type ChallengeConfig struct + AuthEmail string + AuthKey string + type Config struct + JWTSecret *auth.JWTSecret + SessionKey []byte + SuperAdmin string + type User struct + Hash string + Name string + Role string + func NewUser(name, password, role string) (*User, error) + func (u *User) SetPassword(password string) error + func (u User) ComparePasswordAndHash(password string) (bool, error)