Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockTestServer ¶
type MockTestServer struct { NonTLS *MockTestServerInstance TLS *MockTestServerInstance }
MockTestServer is a mock web server. The server supports both HTTPS and HTTP.
func NewMockTestServer ¶
func NewMockTestServer(pathMap map[string]string, tlsEnabled bool) (*MockTestServer, error)
NewMockTestServer return an instance of MockTestServer running with and without TLS.
func (*MockTestServer) Close ¶
func (srv *MockTestServer) Close()
Close closes running instances of MockTestServerInstance, if any.
Click to show internal directories.
Click to hide internal directories.