Documentation ¶
Index ¶
- type Service
- func (service *Service) AddRequestModifier(reqmod martian.RequestModifier)
- func (service *Service) AddResponseModifier(resmod martian.ResponseModifier)
- func (service *Service) ExportAndResetHarLogger() ([]byte, error)
- func (service *Service) ExportHarLogger() ([]byte, error)
- func (service *Service) HasHarLogger() bool
- func (service *Service) Initialize()
- func (service *Service) ProxyURL() string
- func (service *Service) ResetHarLogger() error
- func (service *Service) SetRoundTripModifier(roundTripModifier martian.RoundTripModifier)
- func (service *Service) Start() error
- func (service *Service) Stop() (error, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct { Addr *string ApiAddr *string TlsAddr *string Api *string GenerateCA *bool Cert *string Key *string Organization *string Validity *time.Duration AllowCORS *bool HarLogging *bool MarblLogging *bool TrafficShaping *bool SkipTLSVerify *bool DsProxyURL func(*http.Request) (*url.URL, error) Level *int // contains filtered or unexported fields }
func (*Service) AddRequestModifier ¶
func (service *Service) AddRequestModifier(reqmod martian.RequestModifier)
SetRequestModifier sets the request modifier.
func (*Service) AddResponseModifier ¶
func (service *Service) AddResponseModifier(resmod martian.ResponseModifier)
SetResponseModifier sets the response modifier.
func (*Service) ExportAndResetHarLogger ¶
func (*Service) ExportHarLogger ¶
func (*Service) HasHarLogger ¶
func (*Service) Initialize ¶
func (service *Service) Initialize()
func (*Service) ResetHarLogger ¶
func (*Service) SetRoundTripModifier ¶
func (service *Service) SetRoundTripModifier(roundTripModifier martian.RoundTripModifier)
SetResponseModifier sets the response modifier.
Click to show internal directories.
Click to hide internal directories.