adderutils

package
v0.0.0-...-8c384fb Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2023 License: Apache-2.0, MIT, Apache-2.0, + 1 more Imports: 11 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL