Commit Graph

  • e2f9873db4 add example3: postgres implemented master finlab 2021-01-29 03:52:16 +08:00
  • 31e5b003cd add example2 finlab 2020-12-28 05:11:31 +08:00
  • d51ab3304e add example finlab 2020-12-27 16:38:16 +08:00
  • bb688a618b add go.mod finlab 2020-12-27 16:21:38 +08:00
  • c09e69ae59 Added test for NewNode Bruce Marriner 2019-04-12 17:30:32 -05:00
  • cdbb8ee279 minor changes Bruce Marriner 2019-04-12 17:10:24 -05:00
  • 80c99c0e83 Added Parsers and Tests fixes #6 Bruce Marriner 2019-04-12 17:06:54 -05:00
  • 0684ace7ee Minor comments updates Bruce Marriner 2019-04-11 20:34:59 -05:00
  • 7dcf86e66a
    Merge pull request #19 from nishaad78/monotonic_clock Skippy 2019-04-11 15:57:57 -05:00
  • 4c4a27940a Optimize code Nishaad Ajani 2019-04-11 13:03:43 +08:00
  • 652d4f1b7f
    Merge pull request #18 from nishaad78/monotonic_clock Skippy 2019-04-10 22:58:04 -05:00
  • 1c6d654675 Update to avoid breaking the existing API Nishaad Ajani 2019-04-11 11:17:23 +08:00
  • a3f3d0ff71
    Merge branch 'master' into monotonic_clock Nishaad Ajani 2019-04-10 17:14:22 +08:00
  • 55825bae4b Bug fix and optimization Nishaad Ajani 2019-04-10 17:02:30 +08:00
  • 74a8a18aca Install golint:) Bruce Marriner 2019-04-10 01:41:37 +00:00
  • 20ab5dc6a4 Deprecate several global variables Bruce Marriner 2019-04-10 01:33:37 +00:00
  • 267d02f8b9 Add BenchmarkGenerateMaxSequence func Bruce Marriner 2019-04-10 01:32:30 +00:00
  • 0de6e0c074 Don't let tests skew benchmark Bruce Marriner 2019-04-10 01:21:34 +00:00
  • 272c8fb215 👌Linting Bruce Marriner 2019-04-10 01:12:21 +00:00
  • c3f5528809 Check more, Check against Go 11.x/12.x Bruce Marriner 2019-04-10 01:06:02 +00:00
  • 1d51515945 An attempt at catching race issues Bruce Marriner 2019-04-10 01:02:19 +00:00
  • 2983bd9d27 Saving time as a duration in Node Nishaad Ajani 2019-04-03 14:57:50 +08:00
  • 0685b6ac31
    Rounding time to nearest millisecond Nishaad Ajani 2019-04-03 14:23:35 +08:00
  • af41c88b24 code cleanup Nishaad Ajani 2019-03-15 13:10:57 +08:00
  • 564a60a44c Use monotonic clock if available from the package runtime Nishaad Ajani 2019-03-15 12:46:51 +08:00
  • 68117e6bbe
    Merge pull request #13 from NineRec/patch-1 Bruce 2018-04-11 20:05:44 -05:00
  • c64f7c8e01
    Int64 to string. 龚尚 2018-04-07 14:51:49 +08:00
  • 4ca43961f4
    Update error log for wrong node id. 龚尚 2018-04-07 14:46:40 +08:00
  • f613937295 Document Custom Format options Bruce Marriner 2018-03-19 21:20:30 +00:00
  • a685984f2e Allow custom NodeBits and StepBits to be set. Bruce Marriner 2018-03-19 21:07:06 +00:00
  • 07b209d699
    Merge pull request #10 from freman/master Bruce 2018-03-19 15:35:01 -05:00
  • be5fa11f4f Lets try a code block Bruce Marriner 2018-03-19 19:39:52 +00:00
  • 6ed9a16198 Added a visual reference of snowflake format Bruce Marriner 2018-03-19 19:39:03 +00:00
  • 0516e7e5cf Added Base32 and ParseBase32 methods. Bruce Marriner 2018-03-12 20:56:32 +00:00
  • 7d434bc4d8 Move things around. Bruce Marriner 2018-02-01 02:42:33 +00:00
  • 18b124e694 Added more details on ID format Bruce Marriner 2018-02-01 02:30:24 +00:00
  • 812a8db720 Hide node Mutex Bruce Marriner 2018-02-01 01:25:24 +00:00
  • 3a07db85c1 Use constants for bits, for easier changing Shannon Wynter 2017-10-01 22:07:22 +10:00
  • 1c0147d077 Merge pull request #8 from mixer/fix-decode-panic Bruce 2017-06-29 22:27:14 -05:00
  • d3bf1ae440
    Fix panic during UnmarshalJSON Connor Peet 2017-06-16 09:02:15 -07:00
  • 02cc386c18 Add Status Bruce Marriner 2017-02-21 10:07:16 -06:00
  • 734cbe306e Added Base58 encoder/decoder Bruce Marriner 2017-02-21 09:58:29 -06:00
  • 34b33bf22a Merge branch 'master' of https://github.com/bwmarrin/snowflake Bruce Marriner 2016-12-04 08:16:30 -06:00
  • d80550bec3 Fixed readme example. Bruce Marriner 2016-12-04 08:16:12 -06:00
  • 3107b1dd8c Merge pull request #4 from WatchBeam/intbytes Bruce 2016-08-12 13:28:05 -05:00
  • 95d961a628
    Add a method to encode the snowflake as a byte slice Connor Peet 2016-07-26 11:35:39 -07:00
  • cd8e42350a Merge pull request #2 from zeroZshadow/master Bruce 2016-06-10 21:24:27 -05:00
  • 8abf09e1ce Allocate the maximum in 1 go for marshaling zeroZshadow 2016-06-11 04:20:04 +02:00
  • bb0fb2c0f5 Fix UnmarshalJSON benchmark Optimize MarshalJSON a little more zeroZshadow 2016-06-11 03:48:54 +02:00
  • c676f9e9ea Correct node error. It's 0-1023! Bruce Marriner 2016-06-10 18:54:48 -05:00
  • 00c61c48d0 Use nodeShift instead of 12. Bruce Marriner 2016-06-10 18:51:24 -05:00
  • 94a47d42a7 Don't defer. Bruce Marriner 2016-06-10 18:20:30 -05:00
  • 82eab22d0d Merge pull request #1 from zeroZshadow/master Bruce 2016-06-10 17:59:15 -05:00
  • 7c362b8bf3 oops, left some experiment stuff in zeroZshadow 2016-06-10 20:35:59 +02:00
  • d8933e1ea5 Added tests for MarshalJSON and UnmarshalJSON Reduced allocation of MarshalJSON from 65 to 40 B/op zeroZshadow 2016-06-10 20:33:36 +02:00
  • 348dc1e55f Lint. Bruce Marriner 2016-06-04 15:52:39 -05:00
  • db0acce1d0 Linting, Optimizations, Cleanup, More Benchmarks. Bruce Marriner 2016-06-04 15:50:03 -05:00
  • 0fdfe21511 Removed http.Handler interface Bruce Marriner 2016-06-01 16:58:13 -05:00
  • bdcd2f75e6 Added http.Handler interface Bruce Marriner 2016-06-01 16:49:10 -05:00
  • 97d16a5921 Fixed package name in test file Bruce Marriner 2016-06-01 16:15:57 -05:00
  • bf4c51fc2b Rename to snowflake Bruce Marriner 2016-06-01 16:12:53 -05:00
  • 7e351e0315 Shorten package comment Bruce Marriner 2016-06-01 16:07:43 -05:00
  • 62c0e8458e readme's are hard work. Bruce Marriner 2016-06-01 16:03:53 -05:00
  • f2e8d92661 Fix badge Bruce Marriner 2016-06-01 15:58:14 -05:00
  • 229dec8980 Mention Discord Gophers Bruce Marriner 2016-06-01 15:56:22 -05:00
  • 2934ce581c Update readme. Bruce Marriner 2016-06-01 15:52:49 -05:00
  • 9d4cff4177 Remove fmt.Println Bruce Marriner 2016-06-01 15:51:35 -05:00
  • 8f788319b3 Update readme Bruce Marriner 2016-06-01 15:51:05 -05:00
  • e2267e8327 Mention JSON Marshal/Unmarshal Bruce Marriner 2016-06-01 15:34:17 -05:00
  • 315fd24dfb Add Performance section Bruce Marriner 2016-06-01 15:33:04 -05:00
  • 8b60f34eef Clean up example usage Bruce Marriner 2016-06-01 15:17:09 -05:00
  • b61ac3cab6 Add working example Bruce Marriner 2016-06-01 15:15:24 -05:00
  • 3f3735b65d Fix link, maybe. Bruce Marriner 2016-06-01 15:06:16 -05:00
  • 6db1171237 Readme cleanup Bruce Marriner 2016-06-01 15:02:33 -05:00
  • 113b5eb2cf Adding TravisCI configuration file. Bruce Marriner 2016-06-01 15:01:25 -05:00
  • 939a98fa97 Fix incorrect method name in benchmark. Bruce Marriner 2016-06-01 15:00:34 -05:00
  • cfa7691d14 The Real Initial Commit. Bruce Marriner 2016-06-01 14:59:26 -05:00
  • 9befef8908 Updated readme. Bruce Marriner 2016-05-25 16:28:44 -05:00
  • 433509f1af More tests Bruce Marriner 2016-05-25 16:25:52 -05:00
  • 88e3540ee4 added channel parallel benchmark Bruce Marriner 2016-05-25 15:42:14 -05:00
  • 4677b9c7e1 Added a channel version.. Bruce Marriner 2016-05-25 15:40:25 -05:00
  • 63ab6161db The big question. Bruce Marriner 2016-05-25 15:07:49 -05:00
  • 362c607f74 removed some comments Bruce Marriner 2016-05-25 14:57:52 -05:00
  • f1a31db501 initial commit Bruce Marriner 2016-05-25 14:57:33 -05:00
  • b47a20bc89 Create README.md Bruce 2016-05-25 14:56:18 -05:00
  • c4eced1545 Initial commit Bruce 2016-05-25 14:55:49 -05:00