Discover Packages
github.com/cyril-fl/notes/notes-go
app
shared
services
process
createsession
package
Version:
v0.0.0-...-4d14c86
Opens a new window with list of versions in this module.
Published: Nov 15, 2026
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
Lifetime is how long a session lasts without use: each use starts it again (readsession).
Process logs in: the account's password checked, a session made for the device.
type Input struct {
Name string `json:"name"`
Password string `json:"password"`
Token bool `json:"token" binding:"optional"`
}
type Result struct {
Token string `json:"token,omitempty" binding:"optional"`
User domain .User `json:"user"`
ExpiresAt time .Time `json:"expires_at"`
}
Result is the new session: the token goes to the client, and only there.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.