Documentation ¶
Overview ¶
Package adderutils provides some utilities for adding content to cluster.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddMultipartHTTPHandler ¶
func AddMultipartHTTPHandler( ctx context.Context, rpc *rpc.Client, params api.AddParams, reader *multipart.Reader, w http.ResponseWriter, outputTransform func(api.AddedOutput) interface{}, ) (api.Cid, error)
AddMultipartHTTPHandler is a helper function to add content uploaded using a multipart request. The outputTransform parameter allows to customize the http response output format to something else than api.AddedOutput objects.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.