testhttp

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTestServer

func CreateTestServer(ctx context.Context, t testing.TB, mu ...func(s *http.Server)) (*url.URL, <-chan struct{})

Types

type ConnStateCounters

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

func NewConnStateCounters

func NewConnStateCounters() *ConnStateCounters

func (*ConnStateCounters) GetConnStateTimeline

func (c *ConnStateCounters) GetConnStateTimeline(addr string) []http.ConnState

func (*ConnStateCounters) GetConns

func (c *ConnStateCounters) GetConns() []string

func (*ConnStateCounters) ServerConnState

func (c *ConnStateCounters) ServerConnState(conn net.Conn, state http.ConnState)

func (*ConnStateCounters) String

func (c *ConnStateCounters) String() string

Jump to

Keyboard shortcuts

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