File: user_test.go

package info (click to toggle)
golang-github-xenolf-lego 4.9.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 5,080 kB
  • sloc: xml: 533; makefile: 128; sh: 18
file content (16 lines) | stat: -rw-r--r-- 372 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package registration

import (
	"crypto"
	"crypto/rsa"
)

type mockUser struct {
	email      string
	regres     *Resource
	privatekey *rsa.PrivateKey
}

func (u mockUser) GetEmail() string                 { return u.email }
func (u mockUser) GetRegistration() *Resource       { return u.regres }
func (u mockUser) GetPrivateKey() crypto.PrivateKey { return u.privatekey }