Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/hackergrrl/fallback-ipfs-shell

Provides access to either a running or new IPFS node, in that order of preference.
https://github.com/hackergrrl/fallback-ipfs-shell

Last synced: 1 day ago
JSON representation

Provides access to either a running or new IPFS node, in that order of preference.

Awesome Lists containing this project

README

        

# Installation

```
$ go get github.com/noffle/fallback-ipfs-shell
```

# Usage
```
import (
shell "github.com/noffle/fallback-ipfs-shell/shell"
)
```

### shell.NewShell() (shell.Shell, error)

Returns a Shell interface, preferring a local HTTP API node if it can find
one, but falling back to producing a new ephemeral node that
self-bootstraps.

### shell.NewApiShell() (shell.Shell, error)

Returns a Shell interface, explicitly connecting to a local HTTP
API node if it can find one.

### shell.NewEmbeddedShell() (shell.Shell, error)

Returns a Shell interface, explicitly spawning a new IPFS node.