Documentation
¶
Index ¶
Constants ¶
View Source
const ( XeapiSessionSourceStateFile = "state-file" XeapiSessionSourceCommandLine = "command-line" )
Variables ¶
This section is empty.
Functions ¶
func DefaultDomains ¶
func DefaultDomains() []string
DefaultDomains returns the NetEase domains intercepted by the proxy.
Types ¶
type Config ¶
type Config struct {
ListenAddr string
CACertPath string
CAKeyPath string
// RequirePrivateCAPath applies the managed-CA directory policy to the
// configured certificate and key paths. It is set for ncmctl's default CA.
RequirePrivateCAPath bool
MaxBodyBytes int64
ShowSensitive bool
Debug bool
Domains []string
Out io.Writer
ErrOut io.Writer
ShutdownTimeout time.Duration
XeapiSessions []XeapiSessionSeed
}
Config controls the local HTTP(S) monitoring proxy.
type XeapiSessionSeed ¶
XeapiSessionSeed supplies one startup session without granting the proxy permission to persist later sessions.
func (XeapiSessionSeed) Validate ¶
func (seed XeapiSessionSeed) Validate() error
Validate ensures a startup seed has a supported source and raw ASCII AES key.
Click to show internal directories.
Click to hide internal directories.