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
Click to show internal directories.
Click to hide internal directories.