Selaa lähdekoodia

Update acme.go

Alan Yeung 1 vuosi sitten
vanhempi
commit
42a19b2282
1 muutettua tiedostoa jossa 7 lisäystä ja 1 poistoa
  1. 7 1
      mod/acme/acme.go

+ 7 - 1
mod/acme/acme.go

@@ -25,23 +25,29 @@ import (
 	"imuslab.com/zoraxy/mod/utils"
 )
 
-// You'll need a user or account type that implements acme.User
+// ACMEUser represents a user in the ACME system.
 type ACMEUser struct {
 	Email        string
 	Registration *registration.Resource
 	key          crypto.PrivateKey
 }
 
+// GetEmail returns the email of the ACMEUser.
 func (u *ACMEUser) GetEmail() string {
 	return u.Email
 }
+
+// GetRegistration returns the registration resource of the ACMEUser.
 func (u ACMEUser) GetRegistration() *registration.Resource {
 	return u.Registration
 }
+
+// GetPrivateKey returns the private key of the ACMEUser.
 func (u *ACMEUser) GetPrivateKey() crypto.PrivateKey {
 	return u.key
 }
 
+// ACMEHandler handles ACME-related operations.
 type ACMEHandler struct {
 	email      string
 	acmeServer string