sessions: github.com/adam-hanna/sessions/user Index | Files

package user

import "github.com/adam-hanna/sessions/user"

Index

Package Files

user.go

type Session Uses

type Session struct {
    ID        string
    UserID    string
    ExpiresAt time.Time
    JSON      string
}

Session is a user's session struct

func New Uses

func New(userID string, json string, duration time.Duration) *Session

New returns a new user Session

Package user imports 2 packages (graph) and is imported by 3 packages. Updated 2020-05-01. Refresh now. Tools for package owners.