Files
kapow/internal/client/set.go
Roberto Abdelkader Martínez Pérez 47bd2be882 Some fixes suggested by golangci-lint
2019-10-07 08:53:48 +02:00

13 lines
221 B
Go

package client
import (
"io"
"github.com/BBVA/kapow/internal/http"
)
func SetData(host, handlerID, path string, r io.Reader) error {
url := host + "/handlers/" + handlerID + path
return http.Put(url, "", r, nil)
}