adapter

package
v0.0.0-...-05bc493 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Imposter

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

func NewImposter

func NewImposter(ctx context.Context, svc Service, parallelReaders int) *Imposter

func (*Imposter) PrepareExecutionAbort

func (a *Imposter) PrepareExecutionAbort(ctx smachine.ExecutionContext, state runner.RunState) smachine.AsyncCallRequester

func (*Imposter) PrepareExecutionClassify

func (a *Imposter) PrepareExecutionClassify(ctx smachine.ExecutionContext, execution execution.Context, fn func(contract.MethodIsolation, error)) smachine.AsyncCallRequester

func (*Imposter) PrepareExecutionContinue

func (a *Imposter) PrepareExecutionContinue(ctx smachine.ExecutionContext, state runner.RunState, outgoingResult requestresult.OutgoingExecutionResult, fn func()) smachine.AsyncCallRequester

func (*Imposter) PrepareExecutionStart

func (a *Imposter) PrepareExecutionStart(ctx smachine.ExecutionContext, execution execution.Context, fn func(runner.RunState)) smachine.AsyncCallRequester

type Service

type Service interface {
	ExecutionStart(execution execution.Context) runner.RunState
	ExecutionContinue(run runner.RunState, outgoingResult requestresult.OutgoingExecutionResult)
	ExecutionAbort(run runner.RunState)
	ExecutionClassify(execution execution.Context) (contract.MethodIsolation, error)
}

Jump to

Keyboard shortcuts

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