Help us shape the future of Go! Take the 2026 Go Developer Survey

listener

package
v0.4.1 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Listener

type Listener struct {
	Port    int
	Path    string
	Verbose bool
	Tee     *url.URL

	History int
	Retain  bool
	// contains filtered or unexported fields
}

func (*Listener) Do

func (l *Listener) Do(ctx context.Context) (serveErr error)

func (*Listener) ServeHTTP

func (l *Listener) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (*Listener) ServeHistory added in v0.3.0

func (l *Listener) ServeHistory(w http.ResponseWriter, req *http.Request)

Jump to

Keyboard shortcuts

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