mockserver

package module
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Feb 7, 2022 License: MIT Imports: 4 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

mockserver

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockEchoServer

func NewMockEchoServer(target, method, responseBody string, headers []map[string]interface{}) (echo.Context, *http.Request, *httptest.ResponseRecorder)

NewMockEchoServer ...

func NewMockServer

func NewMockServer(res []byte, statusCode int, headers []map[string]interface{}) *httptest.Server

NewMockServer creates and returns a mock server 1. paramater the response that you want to return 2. paramater the status code that you want to return 3. paramater the headers that you want to return

Types

This section is empty.

Jump to

Keyboard shortcuts

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