user

package
v0.0.0-...-b7e169e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2020 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyUserLogin  = "KeyUserLogin"
	AddTimeAmount = time.Hour * 24 * 30 // About a month.
)

Variables

View Source
var (
	IndexHTML  = tmpl.MustParse("html/index.html")
	InviteHTML = tmpl.MustParse("html/invite.html")
)

Functions

This section is empty.

Types

type User

type User struct {
	// contains filtered or unexported fields
}

func New

func New(log *log.Logger, data dataLayer) *User

func (User) Get

func (u User) Get(w http.ResponseWriter, r *http.Request) (*db.User, error)

func (User) ServeHTTP

func (u User) ServeHTTP(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL