wirelog

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EnableProxy

func EnableProxy(trans *http.Transport, viaAddress string) error

EnableProxy sets up a proxy

func LogToFile

func LogToFile(trans *http.Transport, log string, disableZip, insecure bool) (io.Closer, error)

LogToFile provides quick setup for file logging

func LogToWriter

func LogToWriter(trans *http.Transport, log io.Writer, disableZip, insecure bool) error

LogToWriter provides the basic setup for http wirelogging

func NewHTTPTransport

func NewHTTPTransport() *http.Transport

NewHTTPTransport provides the default http.Transport from https://golang.org/src/net/http/transport.go

Types

type Conn

type Conn struct {
	// embedded
	net.Conn
	// contains filtered or unexported fields
}

Conn ....

func (*Conn) Read

func (c *Conn) Read(b []byte) (n int, err error)

func (*Conn) Write

func (c *Conn) Write(b []byte) (n int, err error)

type Dialer

type Dialer func(network, addr string) (net.Conn, error)

Dialer just makes the return type for the Dialer function reasonable

func Plain

func Plain(log io.Writer, dial Dialer) Dialer

Plain wraps the standard Dialer

func TLS

func TLS(log io.Writer, insecureSkipVerify bool) Dialer

TLS wraps encrypted dialers

func TLSConfig

func TLSConfig(log io.Writer, config *tls.Config) Dialer

TLSConfig wraps encrypted dialers

Jump to

Keyboard shortcuts

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