Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dispatcher ¶
type Dispatcher struct { IP string Port int Router route.Router Translator translate.MessageTranslator VarsProcessor vars.VarsProcessor Notifier notify.Notifier Mlog chan definition.Match Logs chan string }
Dispatcher is the mock http server
func (*Dispatcher) ServeHTTP ¶
func (di *Dispatcher) ServeHTTP(w http.ResponseWriter, req *http.Request)
ServerHTTP is the mock http server request handler. It uses the router to decide the matching mock and translator as adapter between the HTTP impelementation and the mock definition.
Click to show internal directories.
Click to hide internal directories.