service

package
v3.0.0-...-e766414 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 15, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

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 *Service) ExportAndResetHarLogger() ([]byte, error)

func (*Service) ExportHarLogger

func (service *Service) ExportHarLogger() ([]byte, error)

func (*Service) HasHarLogger

func (service *Service) HasHarLogger() bool

func (*Service) Initialize

func (service *Service) Initialize()

func (*Service) ProxyURL

func (service *Service) ProxyURL() string

func (*Service) ResetHarLogger

func (service *Service) ResetHarLogger() error

func (*Service) SetRoundTripModifier

func (service *Service) SetRoundTripModifier(roundTripModifier martian.RoundTripModifier)

SetResponseModifier sets the response modifier.

func (*Service) Start

func (service *Service) Start() error

func (*Service) Stop

func (service *Service) Stop() (error, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL