Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockSpecification ¶
type MockSpecification struct { Body *string `json:"body"` JSONBody map[string]interface{} `json:"jsonBody"` Base64Body []byte `json:"base64Body"` Path string `json:"path"` Status int `json:"status"` Headers http.Header `json:"headers"` Delay *Delay `json:"delay"` }
MockSpecification specification of mock.
func CollectFromDirectory ¶
func CollectFromDirectory(dir string) ([]MockSpecification, error)
CollectFromDirectory collect specifications from the specified directory.
Click to show internal directories.
Click to hide internal directories.