mockremotehost

package
v0.0.0-...-1f491b8 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2019 License: MIT Imports: 5 Imported by: 0

Documentation

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
}

func NewServer

func NewServer(host string, port int, tlsCertFile, tlsKeyFile string) *Server

func (*Server) AcceptConnections

func (srv *Server) AcceptConnections() error

func (*Server) BindToPort

func (srv *Server) BindToPort() error

func (*Server) OnRequest

func (srv *Server) OnRequest(f func(http.ResponseWriter, *http.Request))

func (*Server) Stop

func (srv *Server) Stop() error

func (*Server) URL

func (srv *Server) URL() *url.URL

Jump to

Keyboard shortcuts

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