tarpit

package
v0.0.0-...-5bf2182 Latest Latest
Warning

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

Go to latest
Published: Jun 28, 2022 License: Apache-2.0 Imports: 7 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tarpit

type Tarpit struct {
	// contains filtered or unexported fields
}

func New

func New(workers int, contentType string, period, timeslice time.Duration, minResponseLen, maxResponseLen int64) *Tarpit

func (*Tarpit) Close

func (t *Tarpit) Close()

func (*Tarpit) Handler

func (t *Tarpit) Handler(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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