MCPcopy Index your code
hub / github.com/FunctionStream/function-stream / parameterValueToString

Function parameterValueToString

admin/client/client.go:142–155  ·  view source on GitHub ↗
(obj interface{}, key string)

Source from the content-addressed store, hash-verified

140}
141
142func parameterValueToString(obj interface{}, key string) string {
143 if reflect.TypeOf(obj).Kind() != reflect.Ptr {
144 return fmt.Sprintf("%v", obj)
145 }
146 var param, ok = obj.(MappedNullable)
147 if !ok {
148 return ""
149 }
150 dataMap, err := param.ToMap()
151 if err != nil {
152 return ""
153 }
154 return fmt.Sprintf("%v", dataMap[key])
155}
156
157// parameterAddToHeaderOrQuery adds the provided object to the request header or url query
158// supporting deep object syntax

Callers 7

ConsumeMessageExecuteMethod · 0.85
ProduceMessageExecuteMethod · 0.85
GetStateExecuteMethod · 0.85
SetStateExecuteMethod · 0.85
DeleteFunctionExecuteMethod · 0.85

Calls 1

ToMapMethod · 0.65

Tested by

no test coverage detected