Documentation ¶
Index ¶
- Constants
- func DigitCode(n int) string
- func DigitCodes(c, n int) []string
- func NameFromEmail(email string) string
- func NewLocalListener(p int) (net.Listener, error)
- type Email
- type JWTParseError
- type MockHandler
- type MockSMTPHandler
- type ResetPasswordClaims
- type SessionClaims
- type SessionUser
- type SignupClaims
- type Token
Constants ¶
View Source
const ( Signup = "Signup" Session = "Session" ResetPassword = "ResetPassword" )
const .
View Source
const (
// MockSMTPPort .
MockSMTPPort = 7777
)
Variables ¶
This section is empty.
Functions ¶
func NewLocalListener ¶
NewLocalListener . reference - https://golang.org/src/net/smtp/smtp_test.go
Types ¶
type Email ¶
type Email struct {
// contains filtered or unexported fields
}
Email sends an email.
type JWTParseError ¶
JWTParseError .
func (*JWTParseError) Error ¶
func (e *JWTParseError) Error() string
type MockSMTPHandler ¶
type MockSMTPHandler struct { Con net.Conn Name string From string To string Subject string Body string }
MockSMTPHandler .
func (*MockSMTPHandler) Handle ¶
func (h *MockSMTPHandler) Handle() error
Handle . reference - https://golang.org/src/net/smtp/smtp_test.go
type ResetPasswordClaims ¶
ResetPasswordClaims .
type SessionClaims ¶
type SessionClaims struct { SessionUser jwt.StandardClaims }
SessionClaims .
func ParseSessionJWT ¶
func ParseSessionJWT(signedString, secretkey string) (*SessionClaims, error)
ParseSessionJWT .
type SignupClaims ¶
type SignupClaims struct { Email string jwt.StandardClaims }
SignupClaims .
func ParseSignupJWT ¶
func ParseSignupJWT(signedString, secretkey string) (*SignupClaims, error)
ParseSignupJWT .
Click to show internal directories.
Click to hide internal directories.