server

package
v0.5.22 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package server provides a test server that can be used as a test environment for the hit package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Server

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

Server is a test server that can be used for the test environment.

func NewServer

func NewServer() *Server

NewServer starts a new test server.

func (*Server) Close

func (s *Server) Close() error

Close closes the server.

func (*Server) RequestCount

func (s *Server) RequestCount() uint

RequestCount returns the count of requests that have been made to the server.

func (*Server) Transport

func (s *Server) Transport() *http.Transport

Transport returns a http.Transport that uses the Server.

Jump to

Keyboard shortcuts

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