Documentation
¶
Index ¶
- func CreateCA() ([]byte, []byte, error)
- func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error)
- type BroxySettings
- type ControllerModule
- type GlobalSettings
- type GuiModule
- type Log
- type MainGui
- type Module
- type Session
- func (s *Session) Debug(mod string, message string)
- func (s *Session) Err(mod string, message string)
- func (s *Session) Exec(c string, f string, a ...interface{})
- func (s *Session) Info(mod string, message string)
- func (s *Session) LoadModule(c ControllerModule)
- func (s *Session) ShowErrorMessage(message string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TLSConfigFromCA ¶
func TLSConfigFromCA(ca *tls.Certificate) func(host string, ctx *goproxy.ProxyCtx) (*tls.Config, error)
TLSConfigFromCA returns a TLS configuration with a custom CA
Types ¶
type BroxySettings ¶
Config represents the global configuration
func LoadGlobalSettings ¶
func LoadGlobalSettings(path string) *BroxySettings
LoadGlobalSettings loads the global settings
type ControllerModule ¶
type ControllerModule interface {
ExecCommand(string, ...interface{})
GetModule() Module
GetGui() GuiModule
}
ControllerModule interface
type GlobalSettings ¶
type GlobalSettings struct {
GZipDecode bool
}
type GuiModule ¶
type GuiModule interface {
GetModuleGui() interface{}
GetSettings() interface{}
Title() string
}
GuiModule interface
type Module ¶
type Module interface {
Name() string
Description() string
Status() bool
Start() error
Stop() error
}
Module interface
type Session ¶
type Session struct {
Controllers []ControllerModule
Logs []Log
LogEvent chan Log
MainGui MainGui
PersistentProject *project.PersistentProject
Settings *BroxySettings
GlobalSettings *GlobalSettings
}
Session represents a running session in Broxy with a GUI and loaded modules
func NewSession ¶
func NewSession(cfg *BroxySettings, p *project.PersistentProject, gui MainGui) *Session
NewSession creates a new session
func (*Session) LoadModule ¶
func (s *Session) LoadModule(c ControllerModule)
LoadModule loads a module in the current session
func (*Session) ShowErrorMessage ¶
Click to show internal directories.
Click to hide internal directories.