Abstracts the protocol configuration between the built-in in-memory implementations and out of process
implementations
- Source:
Methods
(inner) load(builtInProtocols, customProtocols, options, isAllowedConnection, mbLogger, impostersRepository) → {Object}
Loads the imposter creation functions for all built in and custom protocols
Parameters:
Name | Type | Description |
---|---|---|
builtInProtocols |
Object | the in-memory protocol implementations that ship with mountebank |
customProtocols |
Object | custom out-of-process protocol implementations |
options |
Object | command line configuration |
isAllowedConnection |
function | a function that determines whether the connection is allowed or not for security verification |
mbLogger |
Object | the logger |
impostersRepository |
Object | the imposters repository |
- Source:
Returns:
- a map of protocol name to creation functions
- Type
- Object