mitm

package
v1.63.0 Latest Latest
Warning

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

Go to latest
Published: Sep 6, 2024 License: MIT Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleConn

func HandleConn(c net.Conn, opt *C.MitmOption, in chan<- C.ConnContext, cache *cache.LruCache[string, bool], auth auth.Authenticator)

func New

func New(addr string, in chan<- C.ConnContext) (C.Listener, error)

Types

type Listener

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

func NewWithAuthenticate

func NewWithAuthenticate(addr string, option *C.MitmOption, in chan<- C.ConnContext, authenticate bool) (*Listener, error)

func (*Listener) Address

func (l *Listener) Address() string

Address implements C.Listener

func (*Listener) Close

func (l *Listener) Close() error

Close implements C.Listener

func (*Listener) RawAddress

func (l *Listener) RawAddress() string

RawAddress implements C.Listener

func (*Listener) SetAuthenticator

func (l *Listener) SetAuthenticator(users []auth.AuthUser)

SetAuthenticator implements C.AuthenticatorListener

Jump to

Keyboard shortcuts

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