add support for sending emails
Change-Id: I9749cda3b997d70271cb4ca709a7cca82a9a0948
This commit is contained in:
@@ -11,6 +11,7 @@ import (
|
||||
"fmt"
|
||||
"io"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
var vcss = map[string]bool{
|
||||
@@ -41,6 +42,15 @@ type Package struct {
|
||||
Ns string `json:"-"`
|
||||
}
|
||||
|
||||
// User stores the information about a user including email used, their
|
||||
// token, whether they have registerd and the requested timestamp
|
||||
type User struct {
|
||||
Email string
|
||||
Token string
|
||||
Registered bool
|
||||
Requested time.Time
|
||||
}
|
||||
|
||||
func (p Package) String() string {
|
||||
return fmt.Sprintf(
|
||||
"<meta name=\"go-import\" content=\"%s %s %s\">",
|
||||
|
||||
Reference in New Issue
Block a user