user

package
v0.0.0-...-6227524 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type User

type User struct {
	ID        primitive.ObjectID `json:"id" bson:"_id,omitempty"`
	Email     string             `json:"email"`
	Password  string             `json:"password"`
	LiveToken string
}

User represents a podoloff user

func (*User) IssueCookie

func (u *User) IssueCookie() *http.Cookie

IssueCookie creates a new cookie

func (*User) ParseUser

func (u *User) ParseUser(r *http.Request) error

ParseUser decodes request body into User struct

Jump to

Keyboard shortcuts

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