session

package
v1.12.2-beta Latest Latest
Warning

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

Go to latest
Published: Feb 6, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Session

type Session struct {
	ID        string
	CreatedAt time.Time
	ExpiresAt time.Time
}

func Create

func Create(forUser *user.User) (*Session, error)

func (Session) SignJWT

func (s Session) SignJWT() (string, error)

Jump to

Keyboard shortcuts

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