Documentation ¶
Index ¶
- Variables
- func ClearAllGUIViews()
- func ClearGUIView(g *gocui.Gui, view string) *gocui.View
- func GenerateCA() (*x509.Certificate, *rsa.PrivateKey)
- func PrintGUIRequest(r *http.Request)
- func PrintGUIResponse(r http.Response)
- func PrintRequest(v *gocui.View, r *http.Request)
- func PrintResponse(v *gocui.View, r http.Response)
- func RunGUI() error
- func RunHTTPProxyCmd(options *Options)
- func RunNetProxyCmd(options *Options)
- func RunProxyCmd(options *Options)
- type CertManager
- type Options
- type Proxy
Constants ¶
This section is empty.
Variables ¶
View Source
var ( InterceptMode bool InterceptChan chan bool )
View Source
var G *gocui.Gui
Functions ¶
func ClearAllGUIViews ¶
func ClearAllGUIViews()
func GenerateCA ¶
func GenerateCA() (*x509.Certificate, *rsa.PrivateKey)
func PrintGUIRequest ¶
func PrintGUIResponse ¶
func RunHTTPProxyCmd ¶
func RunHTTPProxyCmd(options *Options)
func RunNetProxyCmd ¶
func RunNetProxyCmd(options *Options)
func RunProxyCmd ¶
func RunProxyCmd(options *Options)
Types ¶
type CertManager ¶
type CertManager struct { CaCRT *x509.Certificate CaCertPEM *bytes.Buffer CaPrivKey *rsa.PrivateKey CaPrivKeyPem *bytes.Buffer CertPrivKey *rsa.PrivateKey CertPrivKeyPEM *bytes.Buffer CertStore map[string]tls.Certificate }
func InitCertManager ¶
func InitCertManager(caFile string, caPrivKeyFile string) (CertManager, error)
func (CertManager) CreateCertificate ¶
func (certManager CertManager) CreateCertificate(host string) (tls.Certificate, error)
func (CertManager) SaveKeysToDisk ¶
func (certManager CertManager) SaveKeysToDisk() error
Click to show internal directories.
Click to hide internal directories.