aboutsummaryrefslogtreecommitdiffstats
path: root/swarm/api/api.go
Commit message (Collapse)AuthorAgeFilesLines
* swarm: initial instrumentation (#15969)Anton Evangelatov2018-02-231-0/+53
| | | | | | | | | | | | | | | | | | * swarm: initial instrumentation with go-metrics * swarm: initialise metrics collection and add ResettingTimer to HTTP requests * swarm: update metrics flags names. remove redundant Timer. * swarm: rename method for periodically updating gauges * swarm: finalise metrics after feedback * swarm/network: always init kad metrics containers * swarm/network: off-by-one index in metrics containers * swarm, metrics: resolved conflicts
* swarm, cmd/swarm: Merge branch 'master' into multiple-ens-endpointsJanos Guljas2018-02-221-1/+1
|\
| * swarm: bzz-list, bzz-raw and bzz-immutable schemes (#15667)Janoš Guljaš2017-12-191-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * swarm/api: url scheme bzz-list for getting list of files from manifest Replace query parameter list=true for listing all files contained in a swarm manifest with a new URL scheme bzz-list. * swarm: replaace bzzr and bzzi schemes with bzz-raw and bzz-immutable New URI Shemes are added and old ones are deprecated, but not removed. Old Schemes bzzr and bzzi are functional for backward compatibility. * swarm/api: completely remove bzzr and bzzi schemes Remove old schemes in favour of bzz-raw and bzz-immutable. * swarm/api: revert "completely remove bzzr and bzzi schemes" Keep bzzr and bzzi schemes for backward compatibility. At least until 0.3 swarm release.
* | swarm/api: implement NoResolverError with information about TLDJanos Guljas2017-12-191-6/+20
| | | | | | | | | | MultiResolver needs to provide information about TLD that has no resolver configured for.
* | swarm/api: use path.Ext instead strings.LastIndex in MultiResolver.ResolveJanos Guljas2017-12-051-2/+3
| |
* | swarm/api: remove unneeded blank assignementJanos Guljas2017-12-051-1/+1
| |
* | swarm/api: initialize map with make to comply with the conventionJanos Guljas2017-12-051-1/+1
| |
* | swarm/api: remove unneeded assignment in MultiResolverOptionWithResolverJanos Guljas2017-12-051-3/+0
| |
* | swarm: add CLI --ens-endpoint flag (#14386)Janos Guljas2017-12-011-0/+64
|/ | | | | Implement a CLI flag that can be repeated to allow multiple ENS resolvers for different TLDs.
* swarm/api: fixed 404 handling on missing default entry (#15139)holisticode2017-10-061-3/+7
|
* swarm/api/http: add error pages (#14967)holisticode2017-09-091-0/+1
|
* swarm: fix megacheck warningsEgon Elbre2017-08-141-6/+4
|
* swarm/api: fix error reporting in api.Resolve (#14464)Lewis Marshall2017-05-131-18/+25
| | | | | | | Previously, resolve errors were being swallowed and the returned error was a generic "not a content hash" which isn't helpful. This updates the Resolve function to fail fast rather than only returning an error at the end, and also adds test coverage.
* swarm/api: better name resolver handling (#3754)holisticode2017-04-131-13/+15
| | | Fixes #3608
* swarm/api: FUSE read-write support (#13872)Zahoor Mohamed2017-04-121-1/+190
| | | | | | | | - Moved fuse related code in a new package, swarm/fuse - Added write support - Create new files - Delete existing files - Append to files (with limitations) - More test coverage
* swarm/api: refactor and improve HTTP API (#3773)Lewis Marshall2017-04-071-73/+31
| | | | | | | This PR deprecates the file related RPC calls in favour of an improved HTTP API. The main aim is to expose a simple to use API which can be consumed by thin clients (e.g. curl and HTML forms) without the need for complex logic (e.g. manipulating prefix trie manifests).
* eth, les, swarm: fix go vet issues sufraced by log15Péter Szilágyi2017-02-231-1/+1
|
* all: blidly swap out glog to our log15, logs need reworkPéter Szilágyi2017-02-231-12/+11
|
* cmd/swarm, swarm/api: bzzr improve + networkid prionolash2017-01-271-3/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | fixes #3444 fixes #3494 networkid override Added comments to explain why test against 0 appears twice * Command line overrides saved config, saved config overrides system default --- fixes #3476 bzzr get with path Finally a hopefully clean commit for this PR Added check for empty path to avoid SIGSEGV in path parser and resolver Added requested tests for empty path and non-existing manifest. However signature for StartHTTPServer had changed. Now it's hacked as so: StartHttpServer(api.API, &Server{Addr: "127.0.0.1:8504", CorsString: ""}) * Parse url before resolve when path and ENS is supplied, example * swarm/api/http proxy server test for retrieval of subpath through get * Removed nil entry assignment on subtrie leaf in recursive key retrieval * Cleaned up path-or-no-path condition in proxy server get handler * swarm: processed with gofmt refers to lash/go-ethereum@90daa7a * swarm: Added public access method Parse alias to parse * swarm: processed with gofmt References nolash/go-ethereum@2ec3fd7 * Rename parse to Parse, removed alias
* all: fix ineffectual assignments and remove uses of crypto.Sha3Felix Lange2017-01-091-1/+8
| | | | | go get github.com/gordonklaus/ineffassign ineffassign .
* swarm: plan bee for content storage and distribution on web3ΞTHΞЯSPHΞЯΞ2016-08-311-0/+191
This change imports the Swarm protocol codebase. Compared to the 'swarm' branch, a few mostly cosmetic changes had to be made: * The various redundant log message prefixes are gone. * All files now have LGPLv3 license headers. * Minor code changes were needed to please go vet and make the tests pass on Windows. * Further changes were required to adapt to the go-ethereum develop branch and its new Go APIs. Some code has not (yet) been brought over: * swarm/cmd/bzzhash: will reappear as cmd/bzzhash later * swarm/cmd/bzzup.sh: will be reimplemented in cmd/bzzup * swarm/cmd/makegenesis: will reappear somehow * swarm/examples/album: will move to a separate repository * swarm/examples/filemanager: ditto * swarm/examples/files: will not be merged * swarm/test/*: will not be merged * swarm/services/swear: will reappear as contracts/swear when needed