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: 6 months ago
JSON representation
Provides access to either a running or new IPFS node, in that order of preference.
- Host: GitHub
- URL: https://github.com/hackergrrl/fallback-ipfs-shell
- Owner: hackergrrl
- License: mit
- Created: 2015-11-06T18:55:58.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2019-01-31T02:05:05.000Z (over 6 years ago)
- Last Synced: 2024-12-28T21:44:54.555Z (6 months ago)
- Language: Go
- Size: 19.5 KB
- Stars: 6
- Watchers: 3
- Forks: 3
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.