blockpage

package
v1.0.126 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package blockpage owns the corporate "Access Denied" block page: the default HTML template, the runtime-mutable override, and the 403 response writer. It is a self-contained leaf (stdlib only, no Culvert coupling) extracted from the flat package main per ADR-0002.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetHTML

func GetHTML() string

GetHTML returns the current raw HTML source.

func Serve

func Serve(w http.ResponseWriter, url, category, ruleName string)

Serve writes a 403 HTML response using the corporate block page template.

func SetHTML

func SetHTML(html string) error

SetHTML replaces the block page template at runtime.

Types

This section is empty.

Jump to

Keyboard shortcuts

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