Documentation
¶
Index ¶
- Variables
- func Address() string
- func DoRequest(req *http.Request, body []byte)
- func DoResponse(resp *http.Response, body []byte)
- func IsEnabled() bool
- func LoadModule(ctx context.Context, id string) error
- func ReloadAllModules(ctx context.Context) error
- func Shutdown() error
- func Start(addr string) error
- type Proxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrProxyHasBennStarted = errors.New("Proxy server has been started.")
Functions ¶
func DoResponse ¶
func LoadModule ¶
LoadModule loads module with the given ID.
func ReloadAllModules ¶
ReloadAllModules loads all modules.
Types ¶
type Proxy ¶
Proxy is the MitM server which supports start and shutdown.
func SetDefaultProxy ¶
SetDefaultProxy initializes the proxy and returns the proxy instance.
Click to show internal directories.
Click to hide internal directories.