mockserver

package
v2.4.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockServer

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

func NewMockServer

func NewMockServer(doc *openapi3.T) *MockServer

func (*MockServer) Run

func (m *MockServer) Run(options RunOptions) error

type RunOptions

type RunOptions struct {
	Host                string
	Port                int
	Delay               int
	DefaultResponseCode string
	DefaultResponseType string
}

type XMLNode added in v2.4.3

type XMLNode struct {
	XMLName  xml.Name
	Attrs    []xml.Attr `xml:"attr,omitempty"`
	Value    string     `xml:",chardata"`
	Children []*XMLNode `xml:",any"`
}

XMLNode represents a generic XML node

Jump to

Keyboard shortcuts

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