mock

package
v0.1.14 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2024 License: AGPL-3.0 Imports: 13 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ResponseMockEngine

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

func NewMockEngine

func NewMockEngine(document *v3.Document, pretty bool) *ResponseMockEngine

func (*ResponseMockEngine) GenerateResponse

func (rme *ResponseMockEngine) GenerateResponse(request *http.Request) ([]byte, int, error)

func (*ResponseMockEngine) ValidateSecurity

func (rme *ResponseMockEngine) ValidateSecurity(request *http.Request, operation *v3.Operation) error

Jump to

Keyboard shortcuts

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