Commit Graph

432 Commits

Author SHA1 Message Date
Derrick Hammer 0e82207cde
fix: use pointer methods 2024-03-09 07:11:53 -05:00
Derrick Hammer 3bd336b000
fix: update ServiceParams for db 2024-03-09 07:00:12 -05:00
Derrick Hammer c9fe8a0819
feat: implement new kv database package starting with bbolt 2024-03-09 06:46:48 -05:00
Derrick Hammer cc2964e80f
feat: split off meta parsing to ParseMetadata 2024-03-07 16:53:55 -05:00
Derrick Hammer fc212ef246
fix: > not >= 2024-03-05 15:21:47 -05:00
Derrick Hammer 8f32074667
refactor: switch ConnectToNode to use a retries counter and make it configurable via P2PConfig 2024-03-05 15:13:25 -05:00
Derrick Hammer a87bfe7ba6
fix: ErrTransportNotSupported check in wrong location 2024-03-05 15:06:42 -05:00
Derrick Hammer cca7d881de
fix: if ErrTransportNotSupported, then just log and return the error, don't bother blocking 2024-03-05 15:01:59 -05:00
Derrick Hammer 397ed0d6ec
refactor: make no transport error an exported error we can test on 2024-03-05 15:01:22 -05:00
Derrick Hammer 701386c05d
fix: set the username to the peer id for all connection uris 2024-03-05 14:13:22 -05:00
Derrick Hammer 5fcf99d97e
fix: if we dont get a 200, increase the retry count to prevent a possible infinite loop 2024-03-05 13:11:56 -05:00
Derrick Hammer e2d79c0357
fix: pass nil for pk on SignRegistryEntry 2024-03-03 13:02:42 -05:00
Derrick Hammer 4023d99838
fix: MarshalRegistryEntry should optionally take pk so it can work both for marshall and signing 2024-03-03 12:52:59 -05:00
Derrick Hammer ad7880edbe
fix: MarshalRegistryEntry needs to pack the public key after the record type byte 2024-03-03 12:42:45 -05:00
Derrick Hammer cab059e82a
fix: use original data not the version with the message type stripped, so we don't need to shift the offset math in UnmarshalSignedRegistryEntry 2024-03-03 12:25:27 -05:00
Derrick Hammer 56d5ab5e6b
Revert "fix: use record type, not hash type"
This reverts commit 4004dd98c9.
2024-03-03 12:16:51 -05:00
Derrick Hammer 4004dd98c9
fix: use record type, not hash type 2024-03-03 12:12:45 -05:00
Derrick Hammer c6aa2cf4a2
fix: Get needs to actually return the entry 2024-03-03 11:26:44 -05:00
Derrick Hammer 15d0999fdf
fix: store and use by ref 2024-03-03 11:00:34 -05:00
Derrick Hammer e6c6ea473c
refactor: we do not need to bother storing our own ProviderStore data as that would just duplicate any possible data coming from the ProviderStore. 2024-03-03 09:30:40 -05:00
Derrick Hammer 73dc22a71e
refactor: add a local param to StorageService.GetCachedStorageLocations so we don't spam the local provider store on every poll 2024-03-03 09:28:33 -05:00
Derrick Hammer 8c4ebeccd4
fix: need to init underlying map 2024-03-03 07:16:24 -05:00
Derrick Hammer a5e5e76e37
fix: need to encode size of paths 2024-03-03 05:34:27 -05:00
Derrick Hammer 59b9e24238
fix: wm.ErrorPages needs to be passed by ref 2024-03-03 05:22:31 -05:00
Derrick Hammer dce94a4bfc
fix: init a empty ErrorPages if nil 2024-03-03 05:22:13 -05:00
Derrick Hammer 9fbb0bb859
fix: ensure WebAppErrorPages id inited on decode, and return early as an empty map on encode 2024-03-03 04:41:52 -05:00
Derrick Hammer a02458b597
fix: need to use WebAppErrorPages in WebAppMetadata 2024-03-03 04:34:03 -05:00
Derrick Hammer 96d99bb533
refactor: create a type alias for error pages, so we can manage the msgpack encoding properly 2024-03-03 04:28:45 -05:00
Derrick Hammer f29c485b41
refactor: rewrite WebAppFileMap encoding, as its completely wrong 2024-03-03 04:01:04 -05:00
Derrick Hammer 6c3af96077
refactor: make WebAppFileMap a pointer in WebAppMetadata 2024-03-03 03:40:23 -05:00
Derrick Hammer cb7295408c
feat: add WebAppFileMap::Values 2024-03-03 03:33:36 -05:00
Derrick Hammer cc5666ac1c
refactor: switch to using a hashmap based map WebAppFileMap for the webapp meta with path sorting 2024-03-03 03:27:15 -05:00
Derrick Hammer a059980ff0
fix: check local 1st and add it to locations, then return locations in len(locationMap) check 2024-03-02 05:53:54 -05:00
Derrick Hammer b75c8cd3fe
refactor: move local check inside GetCachedStorageLocations to be more transparent 2024-03-02 05:46:18 -05:00
Derrick Hammer 1a4890a6c0
feat: add support to check the local store and inject it 1st as a signed location before going into the network 2024-03-02 05:23:39 -05:00
Derrick Hammer ed79c80def
feat: add Get and Has to fileReferenceMap 2024-03-01 22:23:31 -05:00
Derrick Hammer 9a2d7ebd31
feat: add Get and Has to directoryReferenceMap 2024-03-01 22:21:49 -05:00
Derrick Hammer eb4e4a9f37
refactor: use static error object 2024-03-01 20:54:16 -05:00
Derrick Hammer 1c8efbfba8
fix: change to parsing MetadataExtensionUpdateCID via bytes 2024-03-01 03:41:05 -05:00
Derrick Hammer 4b6f71ea1a
fix: init em.Data 2024-03-01 03:30:26 -05:00
Derrick Hammer c00fe56389
fix: need to cast language items to a string 2024-03-01 03:25:20 -05:00
Derrick Hammer 05522522bf
refactor: switch to using new intParse method 2024-03-01 03:21:31 -05:00
Derrick Hammer 1b950bae08
fix: init m 2024-03-01 03:17:03 -05:00
Derrick Hammer d52e20c0e1
fix: add type switch for bitrate 2024-03-01 03:15:12 -05:00
Derrick Hammer 40f9ec7cac
fix: audiochannels is int8 2024-03-01 03:12:14 -05:00
Derrick Hammer 12f4b7cdff
fix: bitrate is uint16 2024-03-01 03:10:20 -05:00
Derrick Hammer b813f8599f
fix: uint16 not int16 2024-03-01 03:08:37 -05:00
Derrick Hammer 52c5af78a9
fix: asr is parsed as int16 2024-03-01 03:05:11 -05:00
Derrick Hammer ab37004d16
feat: add msgpack decode to MediaFormat 2024-03-01 03:01:30 -05:00
Derrick Hammer 889d327c3a
refactor: use decodeIntMap 2024-03-01 02:55:45 -05:00