shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: May 28, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

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.

Jump to

Keyboard shortcuts

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