notifsapp

package
v0.0.0-...-c858694 Latest Latest
Warning

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

Go to latest
Published: Feb 24, 2024 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package notifsapp is a notification tracking web app.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(ns notification.Service, us users.Service, opt Options) *app

Types

type Options

type Options struct {
	// BodyTop provides components to include at the top of the <body> element. It can be nil.
	BodyTop func(context.Context, State) ([]htmlg.Component, error)
}

Options for configuring notifsapp.

type State

type State struct {
	ReqURL      *url.URL
	CurrentUser users.User
}

func (State) RequestURL

func (s State) RequestURL() *url.URL

Directories

Path Synopsis
Package component contains individual components that can render themselves as HTML.
Package component contains individual components that can render themselves as HTML.

Jump to

Keyboard shortcuts

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