engine

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2023 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

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

func New

func New(mockID string, db database.EngineDB) *Engine

func (*Engine) Handler

func (eng *Engine) Handler(w http.ResponseWriter, r *http.Request)

func (*Engine) Match

func (eng *Engine) Match(req *http.Request) *mock.Response

func (*Engine) Pause

func (eng *Engine) Pause()

func (*Engine) Resume

func (eng *Engine) Resume()

type Plugin added in v0.0.26

type Plugin interface {
	Response(response *mock.Response)
}

Directories

Path Synopsis
plugins

Jump to

Keyboard shortcuts

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