user

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2019 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init()

Init the stores

func LogoutUser

func LogoutUser(w http.ResponseWriter, r *http.Request) error

func NewUser

func NewUser(w http.ResponseWriter, r *http.Request, user goth.User) error

NewUser stores the given goth.User into the store

Types

type Login

type Login = string

type OAuth

type OAuth struct {
	Token        string
	TokenSecret  string
	TokenRefresh string
	Expire       *time.Time
}

type User

type User struct {
	Login     string
	Firstname string
	Lastname  string
	Oauth     OAuth
}

func GetUser

func GetUser(r *http.Request) (user User, err error)

GetUser returns the user link to the request

Jump to

Keyboard shortcuts

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