Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type JSONReader ¶
type JSONReader struct { }
JSONReader struct created to read json config files
func (JSONReader) CanParse ¶
func (jp JSONReader) CanParse(filename string) bool
CanParse return true if is a json file
func (JSONReader) Parse ¶
func (jp JSONReader) Parse(buf []byte) (definition.Mock, error)
Read Unmarshal a json file to Mock struct
type YAMLReader ¶
type YAMLReader struct { }
YAMLReader struct created to read yaml config files
func (YAMLReader) CanParse ¶
func (jp YAMLReader) CanParse(filename string) bool
CanParse return true if is a yaml file
func (YAMLReader) Parse ¶
func (jp YAMLReader) Parse(buf []byte) (definition.Mock, error)
Read Unmarshal a yaml file to Mock struct
Click to show internal directories.
Click to hide internal directories.