Documentation ¶
Overview ¶
Package mobile configures and instantiates a Martian Proxy. This package is a reference implementation of Martian Proxy intended to be cross compiled with gomobile for use on Android and iOS.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetLogLevel ¶
func SetLogLevel(l int)
SetLogLevel sets the Martian log level (Silent = 0, Error, Info, Debug), controlling which Martian log calls are displayed in the console
Types ¶
type Martian ¶
type Martian struct { HARLogging bool TrafficPort int TrafficShaping bool APIPort int APIOverTLS bool BindLocalhost bool Cert string Key string AllowCORS bool RoundTripper *http.Transport // contains filtered or unexported fields }
Martian is a wrapper for the initialized Martian proxy
func NewProxy ¶
func NewProxy() *Martian
NewProxy creates a new Martian struct for configuring and starting a martian.
func (*Martian) EnableCybervillains ¶
func (m *Martian) EnableCybervillains()
EnableCybervillains configures Martian to use the Cybervillians certificate.
Click to show internal directories.
Click to hide internal directories.