Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CORSMiddleware ¶
CORS middleware for development
func LoggingMiddleware ¶
LoggingMiddleware logs HTTP requests
Types ¶
type ResponseFormat ¶
type ResponseFormat string
ResponseFormat represents the desired response format
const ( FormatHTMX ResponseFormat = "htmx" FormatJSON ResponseFormat = "json" FormatPush ResponseFormat = "push" )
func GetFormat ¶
func GetFormat(ctx context.Context) ResponseFormat
GetFormat retrieves the response format from context
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is the main application server
func (*Server) BroadcastTrigger ¶
BroadcastTrigger sends a trigger to all connected clients
func (*Server) NudgeScheduler ¶ added in v0.4.0
NudgeScheduler returns the nudge scheduler for activity tracking
Click to show internal directories.
Click to hide internal directories.