mirror of
https://github.com/yusing/godoxy.git
synced 2025-05-20 12:42:34 +02:00
23 lines
399 B
Go
23 lines
399 B
Go
package autocert
|
|
|
|
import (
|
|
"crypto"
|
|
|
|
"github.com/go-acme/lego/v4/registration"
|
|
)
|
|
|
|
type User struct {
|
|
Email string
|
|
Registration *registration.Resource
|
|
key crypto.PrivateKey
|
|
}
|
|
|
|
func (u *User) GetEmail() string {
|
|
return u.Email
|
|
}
|
|
func (u *User) GetRegistration() *registration.Resource {
|
|
return u.Registration
|
|
}
|
|
func (u *User) GetPrivateKey() crypto.PrivateKey {
|
|
return u.key
|
|
}
|