Allow set float for http plugin (#9381)
This commit is contained in:
parent
d9ef905c9d
commit
baa593cec8
1 changed files with 9 additions and 0 deletions
|
|
@ -251,6 +251,15 @@ func (p *HTTP) IntSetter(param string) func(int64) error {
|
|||
}
|
||||
}
|
||||
|
||||
var _ SetFloatProvider = (*HTTP)(nil)
|
||||
|
||||
// FloatSetter sends int request
|
||||
func (p *HTTP) FloatSetter(param string) func(float64) error {
|
||||
return func(val float64) error {
|
||||
return p.set(param, val)
|
||||
}
|
||||
}
|
||||
|
||||
var _ SetStringProvider = (*HTTP)(nil)
|
||||
|
||||
// StringSetter sends string request
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue