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

memlistener

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2020 License: BSD-3-Clause Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemoryListener

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

func NewMemoryListener

func NewMemoryListener() *MemoryListener

func (*MemoryListener) Accept

func (ml *MemoryListener) Accept() (net.Conn, error)

func (*MemoryListener) Addr

func (ml *MemoryListener) Addr() net.Addr

func (*MemoryListener) Close

func (ml *MemoryListener) Close() error

func (*MemoryListener) Dial

func (ml *MemoryListener) Dial(network, addr string) (net.Conn, error)

type MemoryServer

type MemoryServer struct {
	Listener *MemoryListener
	*http.Server
}

func NewInMemoryServer

func NewInMemoryServer(h http.Handler) *MemoryServer

func (*MemoryServer) NewClient

func (ms *MemoryServer) NewClient() *http.Client

func (*MemoryServer) NewTransport

func (ms *MemoryServer) NewTransport() *http.Transport

Jump to

Keyboard shortcuts

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