chanserver

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChanServer

type ChanServer struct {
	Addr net.Addr
	Reqs <-chan *http.Request
	// contains filtered or unexported fields
}

ChanServer listens for requests and sends them on a channel.

func New

func New() (*ChanServer, error)

New starts a ChanServer listening on a random address.

func (*ChanServer) Close

func (ch *ChanServer) Close() error

Close the server and channel.

Jump to

Keyboard shortcuts

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