Commit Graph

99 Commits

Author SHA1 Message Date
Jakob Borg 2c8b627008 Integer type policy
Integers are for numbers, enabling arithmetic like subtractions and for
loops without getting shot in the foot. Unsigneds are for bitfields.

- "int" for numbers that will always be laughably smaller than four
  billion, and where we don't care about the serialization format.

- "int32" for numbers that will always be laughably smaller than four
  billion, and will be serialized to four bytes.

- "int64" for numbers that may approach four billion or will be
  serialized to eight bytes.

- "uint32" and "uint64" for bitfields, depending on required number of
  bits and serialization format. Likewise "uint8" and "uint16", although
  rare in this project since they don't exist in XDR.

- "int8", "int16" and plain "uint" are almost never useful.
2015-01-19 10:34:36 -08:00
Jakob Borg fbb3222d29 Update dependencies 2015-01-13 13:55:35 +01:00
Jakob Borg eef1aebe8c Refactor out protocol and luhn (protocol dependency) packages 2015-01-13 13:22:56 +01:00
Jakob Borg ce3e6e084c Ensure backwards compatibility before modifying protocol
This change makes sure that things work smoothly when "we" are a newer
version than our peer and have more fields in our messages than they do.
Missing fields will be left at zero/nil.

(The other side will ignore our extra fields, for the same effect.)
2015-01-08 14:25:11 +01:00
Jakob Borg 8c7f1421c6 Update goleveldb 2014-12-29 12:23:07 +01:00
Audrius Butkevicius a9339d0627 Revert "Cache file descriptors" (fixes #1096)
This reverts commit 992ad97ad5.

Causes issues on Windows which uses file locking.
Meaning we cannot archive or modify the file while it's open.
2014-12-08 11:56:14 +00:00
Jakob Borg 581f4b89bd Merge remote-tracking branch 'origin/pr/977'
* origin/pr/977:
  Cache file descriptors
2014-12-07 08:03:34 +01:00
Jakob Borg 15251dfae1 Update calmh/xdr 2014-12-06 14:20:49 +01:00
Audrius Butkevicius 992ad97ad5 Cache file descriptors 2014-12-04 16:18:47 +00:00
Jakob Borg 126c4e9a06 Dependency update, new golang.org/x package names 2014-11-30 00:17:00 +01:00
Jakob Borg 9a549a853b Update goleveldb 2014-11-24 11:57:31 +01:00
Jakob Borg 68399601ce Update goleveldb 2014-11-18 16:24:42 +04:00
Jakob Borg 6efe521e44 Update goleveldb 2014-11-03 22:00:11 -06:00
Jakob Borg 15ee9a5cac Break out logger as a reusable component 2014-10-26 13:16:54 +01:00
Jakob Borg f2adfde1a8 Update xdr; handle marshalling errors 2014-10-21 09:20:14 +02:00
Jakob Borg e82e912151 Dependencies 2014-10-16 14:58:11 +02:00
Jakob Borg 0ebee92f7d Test case and goleveldb fix (fixes #740, fixes #796) 2014-10-08 09:30:36 +02:00
Jakob Borg d819151020 Update goleveldb 2014-10-06 22:07:33 +02:00
Jakob Borg 8f9b8a8550 Fork osext and support Solaris 2014-09-28 23:11:12 +02:00
Jakob Borg d17d80747e Update dependencies (fixes #692) 2014-09-15 18:15:16 +02:00
Jakob Borg 64ffac5671 Update goleveldb (fixes #644, closes #648) 2014-09-07 14:18:00 +02:00
Jakob Borg f633bdddf0 Update goleveldb 2014-09-02 09:44:07 +02:00
Jakob Borg 435d3958f4 Update goleveldb 2014-08-29 12:36:45 +02:00
Jakob Borg 13063b957f Use drained legacy pool in goleveldb 2014-08-19 23:49:03 +02:00
Jakob Borg 32a9466277 Update goleveldb 2014-08-15 09:18:38 +02:00
Jakob Borg f80f5b3bda Update goleveldb 2014-08-14 12:14:48 +02:00
Jakob Borg b004155e8f Small goleveldb hack to reduce allocations somewhat 2014-08-12 15:39:24 +02:00
Jakob Borg adcbe13ecd Update goleveldb 2014-08-12 09:24:36 +02:00
Jakob Borg 279693078a Update deps 2014-08-11 14:24:20 +02:00
Jakob Borg cec3bad373 Move calmh/syncthing -> syncthing/syncthing 2014-08-01 16:48:46 +02:00
Jakob Borg bbeddfe522 Extract github.com/calmh/xdr 2014-08-01 13:12:54 +02:00
Jakob Borg 073775e461 Build Solaris again 2014-07-25 15:26:23 +02:00
Jakob Borg fbf8f3dc68 Add LZ4 compression 2014-07-25 15:16:23 +02:00
Jakob Borg 544fea51b0 Update all deps to latest version 2014-07-23 08:31:36 +02:00
Jakob Borg 978f68b744 Update deps to unfail tests 2014-07-23 07:59:45 +02:00
Jakob Borg 2b9fc0fd43 Update all deps 2014-07-06 23:13:10 +02:00
Jakob Borg 31350b4352 Use LevelDB storage backend 2014-07-06 14:46:48 +02:00
Jakob Borg ee10295d04 Remove martini, use standard http mux 2014-07-05 21:40:29 +02:00
Jakob Borg 4ab4816556 Detect deadlock in model and panic 2014-06-21 12:35:53 +02:00
Jakob Borg 6fb05fc82a Add Edit > Show ID with QR (fixes #243) 2014-05-21 20:06:14 +02:00
Jakob Borg 0ae342673a Update saved dependencies 2014-05-02 10:05:48 +02:00
Jakob Borg 6364c4ff3f Save bcrypt hash of password (fixes #138) 2014-04-19 13:33:51 +02:00
Jakob Borg 07eb4020bd Add github.com/codegangsta/martini-contrib/auth dep 2014-04-09 10:17:19 +02:00
Jakob Borg 1443a1388e Update dependencies 2014-04-08 15:16:46 +02:00
Jakob Borg ee0ee0e39d Remove deprected .ini format reader 2014-04-06 21:48:39 +02:00
Jakob Borg 76e0960a51 Streamline rate limiting 2014-04-01 14:22:38 +02:00
Jakob Borg 3700eb1e61 Use IPv4 multicast discovery 2014-03-28 11:04:48 +01:00
Jakob Borg 75cfa4c33e Update dependencies 2014-03-22 21:58:10 +01:00
Jakob Borg 52cad94e86 Use godep 2014-03-22 21:33:18 +01:00