adderutils

package
v0.0.0-...-6646f2c Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2019 License: MIT Imports: 12 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{},
) (cid.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