web

package
v2.0.2 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2026 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ApplyExternalMiddleware

func ApplyExternalMiddleware(c *frameworkbootstrap.Container, e *echo.Group, logger *slog.Logger, deps *RouteDeps)

func ApplyMainMiddleware

func ApplyMainMiddleware(c *frameworkbootstrap.Container, g *echo.Group, logger *slog.Logger, deps *RouteDeps, webFeatures runtimeplan.WebFeatures)

func ApplyTLSRedirect

func ApplyTLSRedirect(groups ...*echo.Group)

func RegisterStaticRoutes

func RegisterStaticRoutes(c *frameworkbootstrap.Container) error

Types

type RouteDeps

type RouteDeps struct {
	StorageRepo                   *storagerepo.StorageClient
	SubscriptionsRepo             *paidsubscriptions.Service
	NotifierService               *notifications.NotifierService
	NotificationPermissionService *notifications.NotificationPermissionService
	PwaPushService                *notifications.PwaPushService
	FcmPushService                *notifications.FcmPushService
	SMSSenderService              *notifications.SMSSender
	StripeWebhookPath             string
}

func NewRouteDeps

func NewRouteDeps(
	c *frameworkbootstrap.Container,
	paidSubscriptions *paidsubscriptions.Service,
	notificationServices *notifications.Services,
) (*RouteDeps, error)

Directories

Path Synopsis
layouts
gen
pages
gen

Jump to

Keyboard shortcuts

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