server

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: May 23, 2021 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

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

Dispatcher internally maintains all part of the app

func NewDispatcher

func NewDispatcher(
	indexedFiles map[string]fileWalkers.IndexedData,
	router *urlrouter.Router,
	lgr *logrus.Entry,
) *Dispatcher

NewDispatcher is the constructor

func (*Dispatcher) RouteMatching

func (di *Dispatcher) RouteMatching(w http.ResponseWriter, req *http.Request) error

RouteMatching

func (*Dispatcher) ServeHTTP

func (di *Dispatcher) ServeHTTP(w http.ResponseWriter, req *http.Request)

func (Dispatcher) Start

func (di Dispatcher) Start(addr string)

Start initialize the HTTP mock server

Jump to

Keyboard shortcuts

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