WithParameterTypeNames creates option with @parameterTypeNames.
(parameterTypeNames []string)
| 297 | |
| 298 | // WithParameterTypeNames creates option with @parameterTypeNames. |
| 299 | func 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 |
| 311 | func WithParameterValues(parameterValues []reflect.Value) option { |
no outgoing calls