Help us shape the future of Go! Take the 2026 Go Developer Survey

notification

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: MIT Imports: 13 Imported by: 0

Documentation

Overview

Package notification adapts the shared helpers/notify inbox to ContentKit's authenticated user API. Persistence and lifecycle belong to helpers/notify; hosts own rendering and application-specific actions.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Pool           *pgxpool.Pool
	Schema, Tenant string
	Logger         *slog.Logger
}

Options selects the host-owned pool, schema and ContentKit tenant.

type Store

type Store struct {
	*postgres.Store
	// contains filtered or unexported fields
}

Store mounts a shared notification store as one ContentKit tenant's inbox. Embedded methods accept trusted host inputs; HTTP derives the user identity.

func New

func New(opts Options) (*Store, error)

New constructs the adapter over tables installed by contentkit.Migrate.

func (*Store) Handler

func (s *Store) Handler(a auth.Authenticator) (http.Handler, error)

Handler serves only the authenticated person's inbox and read state. It accepts neither a recipient selector nor user-authored notification writes.

Directories

Path Synopsis
Package openrails consumes independently acknowledged OpenRails notification events.
Package openrails consumes independently acknowledged OpenRails notification events.

Jump to

Keyboard shortcuts

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