mockserver

package
v0.0.0-...-58c0a64 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: MIT Imports: 4 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 {
	ReqCh chan *http.Request
	ResCh chan *http.Response
	// contains filtered or unexported fields
}

MockServer is used to run a localhost server for functional testing

func (*MockServer) Start

func (ms *MockServer) Start(ctx context.Context) error

Start runs the http server and exposes push route

func (*MockServer) Stop

func (ms *MockServer) Stop(ctx context.Context) error

Stop to shutdown the http server

Jump to

Keyboard shortcuts

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