Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadJsonMappings ¶
func LoadJsonMappings() error
Types ¶
type BodyPatterns ¶
type BodyPatterns struct {
EqualToJson string `json:"equalToJson,omitempty"`
}
type RRActionMap ¶
type RRActionMap struct {
// contains filtered or unexported fields
}
func GetRRActionMap ¶
func GetRRActionMap() *RRActionMap
func NewRRActionMap ¶
func NewRRActionMap() *RRActionMap
func (*RRActionMap) Get ¶
func (r *RRActionMap) Get(method, url, body string) (*RRActionObject, bool, error)
func (*RRActionMap) Put ¶
func (r *RRActionMap) Put(rrActionObject *RRActionObject) error
type RRActionObject ¶
type RRActionObject struct { Request RequestObject `json:"request,omitempty"` Response ResponseObject `json:"response,omitempty"` }
type RequestObject ¶
type RequestObject struct { Method string `json:"method,omitempty"` Url string `json:"url,omitempty"` Body []BodyPatterns `json:"bodyPatterns"` }
type ResponseObject ¶
Click to show internal directories.
Click to hide internal directories.