Documentation
¶
Index ¶
- type Certificate
- type FileStore
- func (fs *FileStore) GetUser(_ context.Context, email string) (user *User, has bool, err error)
- func (fs *FileStore) GetUserCertificate(_ context.Context, email string, domain string) (cert *Certificate, has bool, err error)
- func (fs *FileStore) SaveUser(_ context.Context, user *User) (err error)
- func (fs *FileStore) SaveUserCertificate(_ context.Context, email string, domain string, cert *Certificate) (err error)
- type Store
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Certificate ¶
type FileStore ¶
type FileStore struct {
// contains filtered or unexported fields
}
func (*FileStore) GetUserCertificate ¶
func (*FileStore) SaveUserCertificate ¶
type Store ¶
type Store interface { GetUser(ctx context.Context, email string) (user *User, has bool, err error) SaveUser(ctx context.Context, user *User) (err error) GetUserCertificate(ctx context.Context, email string, domain string) (cert *Certificate, has bool, err error) SaveUserCertificate(ctx context.Context, email string, domain string, cert *Certificate) (err error) }
func NewFileStore ¶
type User ¶
type User struct { Email string `json:"email"` Resource []byte `json:"resource"` Key []byte `json:"key"` }
func (*User) GetPrivateKey ¶
func (u *User) GetPrivateKey() crypto.PrivateKey
func (*User) GetRegistration ¶
func (u *User) GetRegistration() *registration.Resource
Click to show internal directories.
Click to hide internal directories.