MCPcopy Create free account
hub / github.com/apache/dubbo-go / WithParameterTypeNames

Function WithParameterTypeNames

protocol/invocation/rpcinvocation.go:299–308  ·  view source on GitHub ↗

WithParameterTypeNames creates option with @parameterTypeNames.

(parameterTypeNames []string)

Source from the content-addressed store, hash-verified

297
298// WithParameterTypeNames creates option with @parameterTypeNames.
299func WithParameterTypeNames(parameterTypeNames []string) option {
300 return func(invo *RPCInvocation) {
301 if len(parameterTypeNames) == 0 {
302 return
303 }
304 parameterTypeNamesTmp := make([]string, len(parameterTypeNames))
305 copy(parameterTypeNamesTmp, parameterTypeNames)
306 invo.parameterTypeNames = parameterTypeNamesTmp
307 }
308}
309
310// WithParameterValues creates option with @parameterValues
311func WithParameterValues(parameterValues []reflect.Value) option {

Calls

no outgoing calls