Skip to content

Commit

Permalink
coreapi: dag review
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Łukasz Magiera <magik6k@gmail.com>
  • Loading branch information
magik6k committed Dec 21, 2017
1 parent f153c01 commit a3952e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion core/coreapi/interface/interface.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@ type UnixfsAPI interface {
// DagAPI specifies the interface to IPLD
type DagAPI interface {
// Put inserts data using specified format and input encoding.
// If format is not specified (nil), default dag-cbor/sha256 is used
// Unless used with WithCodec or WithHash, the defaults "dag-cbor" and
// "sha256" are used.
Put(ctx context.Context, src io.Reader, opts ...options.DagPutOption) ([]Node, error)

// WithInputEnc is an option for Put which specifies the input encoding of the
Expand Down

0 comments on commit a3952e2

Please sign in to comment.