MCPcopy
hub / github.com/daptin/daptin / actionResponseAttributes

Function actionResponseAttributes

server_test.go:1233–1243  ·  view source on GitHub ↗
(actionResponses []map[string]interface{}, responseType string)

Source from the content-addressed store, hash-verified

1231}
1232
1233func actionResponseAttributes(actionResponses []map[string]interface{}, responseType string) map[string]interface{} {
1234 for _, actionResponse := range actionResponses {
1235 if actionResponse["ResponseType"] == responseType {
1236 attrs, _ := actionResponse["Attributes"].(map[string]interface{})
1237 if attrs != nil {
1238 return attrs
1239 }
1240 }
1241 }
1242 return map[string]interface{}{}
1243}
1244
1245func CreateObject(typeName string, attributes map[string]interface{}) map[string]interface{} {
1246

Callers 2

runOAuthProviderE2ETestsFunction · 0.85
oauthAppActionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected