html

package
v2.16.0 Latest Latest
Warning

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

Go to latest
Published: Nov 27, 2026 License: MIT Imports: 11 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package html captures events with the sender's own HTML markup: a report, a link to a tool's page, an experiment with a new kind of event. Send

curl -X POST http://html@127.0.0.1:8000 -H 'Content-Type: text/html' --data '<h1>Report</h1>'

or JSON {"title": "…", "html": "…"} with X-Buggregator-Event: html, or POST to /html[/project]. The UI shows the markup in a sandboxed frame.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Module

type Module struct {
	module.BaseModule
}

Module is the custom HTML event catcher.

func New

func New() *Module

New returns the module.

func (*Module) HTTPHandler

func (m *Module) HTTPHandler() module.HTTPIngestionHandler

func (*Module) Name

func (m *Module) Name() string

func (*Module) PreviewMapper

func (m *Module) PreviewMapper() event.PreviewMapper

func (*Module) Type

func (m *Module) Type() string

type Payload

type Payload struct {
	Title string `json:"title"` // from JSON "title", else the page's <title>; may be empty
	HTML  string `json:"html"`
	Size  int    `json:"size"` // bytes of html
}

Payload is the stored event.

Jump to

Keyboard shortcuts

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