MCPcopy Index your code
hub / github.com/SpectoLabs/hoverfly / UnmarshalToInterface

Function UnmarshalToInterface

hoverctl/wrapper/hoverfly.go:74–81  ·  view source on GitHub ↗
(response *http.Response, v interface{})

Source from the content-addressed store, hash-verified

72}
73
74func UnmarshalToInterface(response *http.Response, v interface{}) error {
75 body, err := io.ReadAll(response.Body)
76 if err != nil {
77 return err
78 }
79
80 return json.Unmarshal(body, v)
81}
82
83func Login(target configuration.Target, username, password string) (string, error) {
84 credentials := HoverflyAuthSchema{

Callers 10

GetAllJournalIndexesFunction · 0.85
GetAllPostServeActionsFunction · 0.85
GetModeFunction · 0.85
SetModeWithArgumentsFunction · 0.85
GetMiddlewareFunction · 0.85
SetMiddlewareFunction · 0.85
GetDestinationFunction · 0.85
SetDestinationFunction · 0.85
GetHoverflyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected