reuseconn

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Doc = "reuseconn checks whether HTTP response body is both closed and consumed, so that the underlying TCP connection can be reused"
)

Variables

View Source
var Analyzer = &analysis.Analyzer{
	Name: "reuseconn",
	Doc:  Doc,
	Run:  new(runner).run,
	Requires: []*analysis.Analyzer{
		buildssa.Analyzer,
	},
	FactTypes: []analysis.Fact{&ResponseDisposers{}},
}

Functions

This section is empty.

Types

type Fn

type Fn struct {
	Pkg, Name string
}

type ResponseDisposers

type ResponseDisposers struct {
	Fns []Fn
}

func (*ResponseDisposers) AFact

func (*ResponseDisposers) AFact()

func (*ResponseDisposers) String

func (r *ResponseDisposers) String() string

Jump to

Keyboard shortcuts

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