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
go-dms3
Commits
652ac620
Commit
652ac620
authored
Jan 11, 2018
by
Steven Allen
Committed by
Jeromy
Jan 21, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
golint: documentation fixes
License: MIT Signed-off-by:
Steven Allen
<
steven@stebalien.com
>
parent
9080a588
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
1 deletion
+4
-1
commands/request.go
commands/request.go
+1
-1
core/commands/env.go
core/commands/env.go
+2
-0
core/corehttp/commands.go
core/corehttp/commands.go
+1
-0
No files found.
commands/request.go
View file @
652ac620
...
...
@@ -65,7 +65,7 @@ func (c *Context) NodeWithoutConstructing() *core.IpfsNode {
return
c
.
node
}
//
Root
Context returns the node's context.
// Context returns the node's context.
func
(
c
*
Context
)
Context
()
context
.
Context
{
n
,
err
:=
c
.
GetNode
()
if
err
!=
nil
{
...
...
core/commands/env.go
View file @
652ac620
...
...
@@ -8,6 +8,7 @@ import (
"github.com/ipfs/go-ipfs/repo/config"
)
// GetNode extracts the node from the environment.
func
GetNode
(
env
interface
{})
(
*
core
.
IpfsNode
,
error
)
{
ctx
,
ok
:=
env
.
(
*
commands
.
Context
)
if
!
ok
{
...
...
@@ -17,6 +18,7 @@ func GetNode(env interface{}) (*core.IpfsNode, error) {
return
ctx
.
GetNode
()
}
// GetConfig extracts the config from the environment.
func
GetConfig
(
env
interface
{})
(
*
config
.
Config
,
error
)
{
ctx
,
ok
:=
env
.
(
*
commands
.
Context
)
if
!
ok
{
...
...
core/corehttp/commands.go
View file @
652ac620
...
...
@@ -37,6 +37,7 @@ or
ipfs daemon --api-http-header 'Access-Control-Allow-Origin: *'
`
// APIPath is the path at which the API is mounted.
const
APIPath
=
"/api/v0"
var
defaultLocalhostOrigins
=
[]
string
{
...
...
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