pproffd

package
v2.5.2 Latest Latest
Warning

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

Go to latest
Published: Jul 13, 2021 License: MIT Imports: 4 Imported by: 4

Documentation

Overview

Package pproffd is for detecting resource leaks due to unclosed handles.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapNetConn

func WrapNetConn(nc net.Conn) net.Conn

Tracks a net.Conn until Close() is explicitly called.

Types

type CloseWrapper added in v2.5.0

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

func NewCloseWrapper added in v2.5.0

func NewCloseWrapper(c io.Closer) CloseWrapper

func (CloseWrapper) Close added in v2.5.0

func (me CloseWrapper) Close() error

func (CloseWrapper) Wrapped added in v2.5.0

func (me CloseWrapper) Wrapped() io.Closer

type OSFile

type OSFile interface {
	io.Reader
	io.Seeker
	io.Closer
	io.Writer
	Stat() (os.FileInfo, error)
	io.ReaderAt
	io.WriterAt
	Wrapped
}

func WrapOSFile

func WrapOSFile(f *os.File) OSFile

type Wrapped added in v2.5.0

type Wrapped interface {
	Wrapped() io.Closer
}

Jump to

Keyboard shortcuts

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