Documentation ¶
Index ¶
Constants ¶
View Source
const ( CHANNEL_CLEAR = "clear" CHANNEL_MOCK = "mock" PAYLOAD_SEPARATOR = "|" )
View Source
const ( DEFAULT_PORT = "6379" SERVER_ADDR = "localhost:" + DEFAULT_PORT NETWORK = "tcp" SEPARATOR = "," CONNECT_THRESHOLD = 1000 )
Variables ¶
This section is empty.
Functions ¶
func YamlToJsonString ¶
Types ¶
type MockContext ¶
type MockContext struct { Path string `json:"path" yaml:"path"` Method string `json:"method" yaml:"method"` Code string `json:"code" yaml:"code"` Body interface{} `json:"body" yaml:"body"` Header interface{} `json:"header" yaml:"header"` }
func ReadMockFile ¶
func ReadMockFile(path string) ([]MockContext, []string)
func ReadMockFiles ¶
func ReadMockFiles(dir string, prefix *string) ([]MockContext, []string)
Click to show internal directories.
Click to hide internal directories.