package
Version:
v1.3.0
Opens a new window with list of versions in this module.
Published: Dec 29, 2020
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Conf struct {
Echo []string `yaml:"echo,omitempty"`
LogBody []LogBody `yaml:"logBody,omitempty"`
Replay []Response `yaml:"replay,omitempty"`
}
Conf type to define custom request mapping
GetConf get the config from the given file
type LogBody struct {
Path string `yaml:"path"`
LineLength bool `yaml:"lineLength"`
ResponseCode int `yaml:"responseCode"`
}
LogBody config type
type Response struct {
Path string `yaml:"path"`
Body string `yaml:"body,omitempty"`
BodyFile string `yaml:"bodyFile,omitempty"`
ContentType string `yaml:"contentType"`
}
Response config type
Source Files
¶
Click to show internal directories.
Click to hide internal directories.