Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
dms3
interface-go-dms3-core
Commits
dbdf6fd6
Commit
dbdf6fd6
authored
Sep 20, 2018
by
Łukasz Magiera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
coreapi unixfs: options for RawLeaves / Inline
License: MIT Signed-off-by:
Łukasz Magiera
<
magik6k@gmail.com
>
parent
6c7f760b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
0 deletions
+15
-0
options/unixfs.go
options/unixfs.go
+15
-0
No files found.
options/unixfs.go
View file @
dbdf6fd6
...
@@ -52,3 +52,18 @@ func (unixfsOpts) Hash(mhtype uint64) UnixfsAddOption {
...
@@ -52,3 +52,18 @@ func (unixfsOpts) Hash(mhtype uint64) UnixfsAddOption {
return
nil
return
nil
}
}
}
}
func
(
unixfsOpts
)
RawLeaves
(
enable
bool
)
UnixfsAddOption
{
return
func
(
settings
*
UnixfsAddSettings
)
error
{
settings
.
RawLeaves
=
enable
settings
.
RawLeavesSet
=
true
return
nil
}
}
func
(
unixfsOpts
)
InlineLimit
(
limit
int
)
UnixfsAddOption
{
return
func
(
settings
*
UnixfsAddSettings
)
error
{
settings
.
InlineLimit
=
limit
return
nil
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment