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: 0

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