package
Version:
v0.0.0-...-7c1aaf1
Opens a new window with list of versions in this module.
Published: May 27, 2024
License: AGPL-3.0
Opens a new window with license information.
Imports: 13
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Delete removes a session from the database (logout)
New creates a new authentication session in the database (login)
ValidateSession takes a token and finds its session. Returns true if valid, false if anything else
type Session struct {
Owner uuid.UUID `db:"owner"`
Version string `db:"token_version"`
Public string `db:"token_public"`
Secret string `db:"token_secret"`
Salt string `db:"token_salt"`
Created time.Time `db:"created"`
Expires time.Time `db:"expires"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.