Commit graph

46 commits

Author SHA1 Message Date
Alex Grintsvayg
0a54d4da56 fixed some linting errors
found them using

```
gometalinter --skip=vendor --disable-all --enable=megacheck --enable=deadcode --enable=ineffassign --enable=interfacer --enable=errcheck ./...
```
2018-08-07 11:38:56 -04:00
Alex Grintsvayg
d9b4c0f94d fix rpc server 2018-08-07 11:10:12 -04:00
Alex Grintsvayg
5378fcbb94 hash announcer / rate limiter 2018-07-26 16:05:27 -04:00
Alex Grintsvayg
f068daf0b8 handle peer port correctly 2018-07-13 13:31:54 -04:00
Alex Grintsvayg
283ec46bd5 Revert "add tcp port mapping to data store"
This reverts commit 76b0e156366163ad9caae988253f66680a4c5bec.
2018-07-13 12:49:41 -04:00
Jack Robison
a98d10fbd5 add tcp port mapping to data store 2018-07-13 11:23:18 -04:00
Jack Robison
6e80d3d8e1 add dht start command, run a jsonrpc server to interact with the node 2018-07-12 10:17:14 -04:00
Alex Grintsvayg
4e78c08818 partial switch to new stopgroup. need to refactor to take advantage of child cancelation 2018-06-25 16:49:40 -04:00
Alex Grintsvayg
66ca77b690 remove sendCancelable 2018-06-25 15:56:45 -04:00
Alex Grintsvayg
e534f5b972 correct node_finder to use loose parallelism 2018-06-25 15:48:57 -04:00
Alex Grintsvayg
8a620a82a3 minor fixes 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
f61ea53c8c add token cache 2018-06-21 15:06:40 -04:00
Alex Grintsvayg
1c2175df39 fixed a few channel lockups, fixed announced port in dht, successfully announced and served a blob 2018-06-21 11:26:48 -04:00
Alex Grintsvayg
5e346cc21a cluster automatically balances what nodes are announcing what hashes 2018-06-19 13:47:13 -04:00
Alex Grintsvayg
b19df481da starting to put together the pieces
- prism start command
- more configs for prism when assembling the pieces
- cluster notifies on membership change, determines hash range, announces hashes
2018-06-14 22:30:38 -04:00
Alex Grintsvayg
fc9b05b8c6 move bitmap into separate package 2018-06-14 20:10:44 -04:00
Alex Grintsvayg
5968953d05 fix some stoppers 2018-06-13 12:45:47 -04:00
Mark Beamer Jr
63e58248cc Addressed code reviews. 2018-06-13 09:44:24 -04:00
Mark Beamer Jr
470e3721d0 implemented stopper pattern
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
-Implemented stopper param for reflector server
-Aligned Cluster New to NewCluster
-Adjusted DHT to use StopAndWait
-Removed blocking waitgroup add
-Unified all components under prism.
-Moved defer done outside of functions.
-renamed NewCluster to New
-fixed travis errors.
2018-06-13 09:36:44 -04:00
Mark Beamer Jr
8100010220 code cleanup
-Added travis support
-updated travis to analyze code beneath the root.
-refactored upload.go to fix travis errors.
-gocyclo should ignore test files. $GOFILES needed to be adjusted.
-fix rows.Close() ignoring error. Created func to handle so defer can be used when needed also.
-fixed ignored errors.
-fixed unit test that was not passing correctly to anonymous function.
-fixed govet error for passing param inside go func.
-removed returned error, in favor of logging instead.
-added error logging for ignored error.
-fixed potential race conditions.
-removed unused append
-fixed time usage to align with go standards.
-removed unused variables
-made changes for code review.
-code comments for exported functions.
-Documented bitmap.go and insert into contact list.
-Documented dht, message, bootstrap
-Fixed comment typos
-Documented message,node, routing_table, testing in DHT package.
-Documented server, client, prism, server and shared in peer and reflector packages.
-Documented the stores in Store package.
-made defer adjustments inline and deleted the separate function.
-adjusted method in upload to take the only parameter it requires.
2018-06-13 09:29:13 -04:00
Alex Grintsvayg
79527da8a9 get rid of ReadDeadline, switch to updated stopOnce 2018-05-24 17:49:43 -04:00
Alex Grintsvayg
6a0cab5f62 update stopper 2018-05-24 13:05:05 -04:00
Alex Grintsvayg
1c31e54860 self-store 2018-05-22 12:27:49 -04:00
Alex Grintsvayg
13321b53b4 reannounce 2018-05-22 12:16:08 -04:00
Alex Grintsvayg
14cceda81e added routing table saving, bitmap operations, lots of tests 2018-05-19 13:06:19 -04:00
Alex Grintsvayg
ffd8c891db bootstrap node, bucket grooming 2018-05-13 17:33:49 -04:00
Alex Grintsvayg
1f7841e4d0 minor refactor 2018-05-01 16:18:38 -04:00
Alex Grintsvayg
079a6bf610 move most dht code into Node 2018-04-27 20:16:12 -04:00
Alex Grintsvayg
a232f02e2d expose how many initial nodes are found 2018-04-24 21:13:37 -04:00
Alex Grintsvayg
8f5313fe76 fix rt updates, add Ping method 2018-04-24 18:12:17 -04:00
Alex Grintsvayg
8a5917a982 bind all ports by default 2018-04-24 17:20:03 -04:00
Alex Grintsvayg
0aa1ce7343 kill printstate when dht stops 2018-04-05 16:39:05 -04:00
Alex Grintsvayg
f5f47aa079 add token manager, add token to request/response, sucessfully perform a STORE request on the python daemon 2018-04-05 16:27:28 -04:00
Alex Grintsvayg
5a37e49765 more improvements 2018-04-05 11:35:57 -04:00
Alex Grintsvayg
79addd0b6e bitmaps in more places 2018-04-04 11:43:27 -04:00
Alex Grintsvayg
5bb275afaa node finder is its own thing. simplify exported dht api 2018-04-03 14:00:35 -04:00
Alex Grintsvayg
ea8d0d1eed proper types for some IDs 2018-04-03 13:38:01 -04:00
Alex Grintsvayg
a5ef461fc5 findNode and findValue implemented 2018-04-03 12:14:04 -04:00
Alex Grintsvayg
24c079a7dd dht iterativefind, some tests 2018-03-28 21:05:27 -04:00
Alex Grintsvayg
05e2d8529a add transaction manager, fix bencoding to support int keys, fix routing table bucketing 2018-03-23 20:15:35 -04:00
Alex Grintsvayg
883d76d8bb fix bitmap prefix len 2018-03-15 14:42:57 -04:00
Alex Grintsvayg
211dbd7c50 findvalue done 2018-03-11 06:21:02 -04:00
Alex Grintsvayg
e13fe7c2f0 lots more work. findnode should work now 2018-03-08 19:50:18 -05:00
Alex Grintsvayg
5c44ca40c2 store works. fixed some bencode bugs 2018-03-07 19:49:33 -05:00
Alex Grintsvayg
006a49bd67 better tests, better bencoding 2018-03-07 16:15:58 -05:00
Alex Grintsvayg
f565d0b78f basic dht + tests 2018-03-06 20:15:44 -05:00