signin

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 2, 2020 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ContextKeyUser = contextKey("user")
)

Functions

func GetUser added in v0.1.1

func GetUser(req *http.Request) *user.User

Types

type SignInHandler

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

func NewSignInHandler

func NewSignInHandler(signInURL, assetsURL, apiURL string, sessionDB *session.DB, userDB *user.DB, template *template.Template) *SignInHandler

func (SignInHandler) Middleware

func (s SignInHandler) Middleware(blocking bool) mux.MiddlewareFunc

func (SignInHandler) ServeHTTP

func (s SignInHandler) ServeHTTP(res http.ResponseWriter, req *http.Request)

func (SignInHandler) SignOut added in v0.1.1

func (s SignInHandler) SignOut(res http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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