fakehttpserver

package
v0.0.0-...-09c7815 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2020 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeHTTPServer

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

FakeHTTPServer fake http server struct

func New

func New(body string, statusCode int) *FakeHTTPServer

New instantiate new fakehttpserver

func (*FakeHTTPServer) GetServer

func (f *FakeHTTPServer) GetServer() *httptest.Server

GetServer return fake http server

func (*FakeHTTPServer) GetServerAddr

func (f *FakeHTTPServer) GetServerAddr() string

GetServerAddr http server address getter

Jump to

Keyboard shortcuts

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