Commit Graph

233 Commits

Author SHA1 Message Date
Derrick Hammer 16ce7338bd
feat: implement HashQuery HandleMessage 2024-01-06 10:55:21 -05:00
Derrick Hammer eefbfa06d0
feat: initial node scoring support 2024-01-06 10:54:03 -05:00
Derrick Hammer 67be38e6c9
refactor: switch to storing by the base58 id, not the hashcode 2024-01-06 10:53:20 -05:00
Derrick Hammer 9654fadfee
refactor: abstract button creation to a generic utility method 2024-01-06 09:46:01 -05:00
Derrick Hammer 4959270f51
feat: wip initial storage location support 2024-01-06 09:45:00 -05:00
Derrick Hammer f45e297791
refactor: make fullBytes private and create a getter 2024-01-06 07:11:51 -05:00
Derrick Hammer 8c29a284ce
feat: wip networking 2024-01-06 06:34:15 -05:00
Derrick Hammer 8d1bdd87ac
refactor: move Data to be accessed via Bytes and Raw 2024-01-06 06:33:23 -05:00
Derrick Hammer 785d4029e9
feat: add protocol types 2024-01-05 13:47:56 -05:00
Derrick Hammer a5cc5b3d9e
refactor: rename NodeIdDecode for readability 2024-01-05 10:50:22 -05:00
Derrick Hammer d708297651
fix: ContentType shouldnt be a pointer 2024-01-05 09:02:58 -05:00
Derrick Hammer 1cf7fe283a
feat: initial web_app structs 2024-01-05 09:02:26 -05:00
Derrick Hammer a499dcf544
feat: initial media structs 2024-01-05 08:58:13 -05:00
Derrick Hammer 22e72da15c
feat: initial user identity structs 2024-01-05 08:46:08 -05:00
Derrick Hammer 93782c9db7
feat: add meta MetadataParentLink 2024-01-05 08:41:17 -05:00
Derrick Hammer 36c4212305
chore: remove commented code 2024-01-05 07:41:33 -05:00
Derrick Hammer f1f5ad4c02
chore: unneeded struct 2024-01-05 07:40:50 -05:00
Derrick Hammer 338fbf3d0a
refactor: add more value types to marshallMapMsgpack 2024-01-05 07:32:34 -05:00
Derrick Hammer b1c7c8a9fd
refactor: add a map wrapper for FileReference serialization 2024-01-05 07:31:54 -05:00
Derrick Hammer 7ad63aea3a
refactor: add a map wrapper for FileVersionThumbnail and FileVersion serialization 2024-01-05 07:19:31 -05:00
Derrick Hammer 40d7c90595
refactor: add uint64 and Base64UrlBinary value support to marshallMapMsgpack 2024-01-05 07:01:27 -05:00
Derrick Hammer de909db84e
fix: need to use directoryReferenceSerializationMap 2024-01-05 07:00:42 -05:00
Derrick Hammer 012c90ddae
refactor: add multitype support for keys to marshallMapMsgpack 2024-01-05 06:59:55 -05:00
Derrick Hammer 00157e463c
refactor: add directoryReferenceSerializationMap map wrapper to handle DirectoryReference serialization 2024-01-05 06:36:18 -05:00
Derrick Hammer 453e8590c7
dep: move go-cmp back to upstream version, add gods 2024-01-05 06:23:32 -05:00
Derrick Hammer c039ced75e
test: implement directory encoding test, clean up all other unn-needed test dummies 2024-01-05 06:23:04 -05:00
Derrick Hammer 70c63a5a34
chore: unneeded debug 2024-01-05 06:17:52 -05:00
Derrick Hammer 951f0062da
refactor: add needed helper functions and overrides to properly compare the maps 2024-01-05 06:16:19 -05:00
Derrick Hammer 15b6a0dc19
refactor: change FileReference.DecodeMsgpack to just directly decode history, as it has its own deser 2024-01-05 06:12:52 -05:00
Derrick Hammer 0e2ef0969a
refactor: change FileReference.DecodeMsgpack to use an empty map wrapper for exp and history if they were not decoded, we don't want them nil 2024-01-05 06:10:29 -05:00
Derrick Hammer c5fb8a2c15
refactor: change FileReference.EncodeMsgpack to use new map wrappers, and don't serialize ext or history if empty 2024-01-05 06:08:55 -05:00
Derrick Hammer c328cb1f1b
refactor: use map struct wrappers for and ext, fileHistory, and add serialization methods for them 2024-01-05 06:07:44 -05:00
Derrick Hammer a10bec66ea
refactor: allow unmarshalMapMsgpack to handle int maps 2024-01-05 06:05:59 -05:00
Derrick Hammer 6c27a978d1
refactor: add more type cases to marshallMapMsgpack 2024-01-05 06:04:46 -05:00
Derrick Hammer c3a696138a
refactor: move directoryReferenceMap and fileReferenceMap to its own file 2024-01-05 04:43:46 -05:00
Derrick Hammer d39f959e31
fix: ensure we always serialize an empty map if nil 2024-01-05 04:35:20 -05:00
Derrick Hammer 15030b6866
refactor: use a linked hash map to keep order of file and directory entries, and refactor the json and msgpack marshalling and centralize it further 2024-01-05 03:46:08 -05:00
Derrick Hammer 85320087a4
fix: need to pack with int, not int8 2024-01-04 13:49:23 -05:00
Derrick Hammer 261c88b568
fix: don't call encode inside EncodeMsgpack, ensure its delegated to the custom marshalers 2024-01-04 13:49:07 -05:00
Derrick Hammer c5c4bbfb6e
fix: missing return Encode 2024-01-04 13:48:17 -05:00
Derrick Hammer 2ac5ff60be
refactor: need to abstract DirectoryMetadata maps to their own types to properly handle msgpack serialization 2024-01-04 12:41:39 -05:00
Derrick Hammer 9f2e17bf54
refactor: centralize code more 2024-01-04 10:50:08 -05:00
Derrick Hammer df4cadf797
refactor: put shared serialization code in private encode method, and update json and msgpack to use it 2024-01-04 10:33:57 -05:00
Derrick Hammer c5441b2e16
chore: remove commented code 2024-01-04 10:27:56 -05:00
Derrick Hammer bd3cbc694f
fix: wrong json name for PlaintextCID 2024-01-04 10:27:23 -05:00
Derrick Hammer 53af084864
refactor: update ExtraMetadata MarshalJSON and add UnmarshalJSON 2024-01-04 10:26:44 -05:00
Derrick Hammer 026a7dc10e
fix: need to export Encoder for test cases 2024-01-04 10:08:13 -05:00
Derrick Hammer e6034b9aae
refactor: move UnmarshalBase64UrlJSON to encoding to prevent an import loop 2024-01-04 09:51:35 -05:00
Derrick Hammer 039fbc1867
refactor: export ErrMultibaseEncodingNotSupported 2024-01-04 09:50:11 -05:00
Derrick Hammer d907fddde8
fix: need to cast to Base64UrlBinary 2024-01-04 08:57:58 -05:00