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

Method GetMethodParamIntValue

common/url.go:734–740  ·  view source on GitHub ↗

GetMethodParamIntValue gets int method param

(method string, key string, d int)

Source from the content-addressed store, hash-verified

732
733// GetMethodParamIntValue gets int method param
734func (c *URL) GetMethodParamIntValue(method string, key string, d int) int {
735 r, err := strconv.ParseInt(c.GetParam("methods."+method+"."+key, ""), 10, 0)
736 if err != nil {
737 return d
738 }
739 return int(r)
740}
741
742// GetMethodParamInt64 gets int64 method param
743func (c *URL) GetMethodParamInt64(method string, key string, d int64) int64 {

Callers 3

newSelectorFunction · 0.80
getRetriesFunction · 0.80

Calls 1

GetParamMethod · 0.95

Tested by 1