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
MessageSender amqp.Sender
Mlog chan definition.Match
}
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.