proxy

package
v0.0.0-...-079c800 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2023 License: MIT Imports: 26 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

Handler structure

func NewProxyHandler

func NewProxyHandler(
	config *types.Configuration,
	authAdapter web.AuthAdapter,
	scenarioRepository repository.APIScenarioRepository,
	fixtureRepository repository.APIFixtureRepository,
	groupConfigRepository repository.GroupConfigRepository,
	adapter web.Adapter,
) *Handler

NewProxyHandler instantiates controller for updating api-scenarios

func (*Handler) Start

func (h *Handler) Start() error

Start runs the proxy server on a given port

type Recorder

type Recorder struct {
	// contains filtered or unexported fields
}

Recorder structure

func NewRecorder

func NewRecorder(
	config *types.Configuration,
	client web.HTTPClient,
	scenarioRepository repository.APIScenarioRepository,
	groupConfigRepository repository.GroupConfigRepository,
) *Recorder

NewRecorder instantiates controller for updating api -scenarios

func (*Recorder) Handle

func (r *Recorder) Handle(c web.APIContext) (err error)

Handle records request

Jump to

Keyboard shortcuts

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