Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Render ¶
func Render(w http.ResponseWriter, r *http.Request, page *widget.PageWidget)
Render sets the user's color preferences before rendering the page.
Types ¶
type Session ¶
type Session struct {
ID string
Theme string
Palette string
// contains filtered or unexported fields
}
Session keeps track of user data in-memory. It is an in-memory emulation of a database.
func SessionOf ¶
func SessionOf(w http.ResponseWriter, r *http.Request) *Session
SessionOf returns or creates a session for the request.
func (*Session) DirectoryDB ¶
func (s *Session) DirectoryDB() *storage.PersonDirectory
DirectoryDB returns the directory database associated with the session.
Click to show internal directories.
Click to hide internal directories.