floaty

package module
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 13, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

README

Floaty

☁️ Prevent loopbacks... Without traceability.

This is a Caddy plugin that adds customizable rolling instance IDs, permitting loopback prevention while maximizing difficulty in tracing.

Documentation available at kb.ltgc.cc.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FloatyItem

type FloatyItem struct {
	Length   int   `json:"length,omitempty"`
	Duration int64 `json:"duration,omitempty"`
	// contains filtered or unexported fields
}

Initialize!

type FloatyModule

type FloatyModule struct {
	Values map[string]*FloatyItem `json:"values,omitempty"`
	// contains filtered or unexported fields
}

func (FloatyModule) CaddyModule

func (FloatyModule) CaddyModule() caddy.ModuleInfo

Register the module

func (*FloatyModule) Provision

func (module *FloatyModule) Provision(ctx caddy.Context) error

Provision!

func (FloatyModule) ServeHTTP

func (module FloatyModule) ServeHTTP(
	writer http.ResponseWriter,
	request *http.Request,
	handler caddyHttp.Handler,
) error

Handle! Handle requests with placeholder replacements

func (*FloatyModule) UnmarshalCaddyfile

func (module *FloatyModule) UnmarshalCaddyfile(
	dispenser *caddyfile.Dispenser,
) error

Parse the Caddyfile directives

Jump to

Keyboard shortcuts

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