Commit graph

32 commits

Author SHA1 Message Date
mariusor
4837641dc8
Converted the URL property to support an array of links as a value 2022-04-20 11:11:13 +02:00
Marius Orcsik
93a9596849
Using go1.18 and adding some interface types that can be used for generics 2022-03-19 20:14:56 +01:00
mariusor
3e9850f7d0
Adding gob encode/decode functionality for *Collection types 2022-01-12 18:57:45 +01:00
mariusor
3f601dee05
Fix union types 2021-11-12 20:05:34 +01:00
Marius Orcsik
648b2cf097
Added generics compatible interface type constraints for Objects, Collections, Activities, Actors using type unions 2021-11-12 20:05:34 +01:00
mariusor
4b021a9cdb Fix some misspells 2021-11-12 19:21:16 +01:00
mariusor
a8126635d3 Fix some linting warnings 2021-11-12 19:10:31 +01:00
mariusor
5064eea988 Go fmt'ed files 2021-11-12 18:27:28 +01:00
Marius Orcsik
cd6c842227
Remove returning total items for collection, collection page, ordered collection and ordered collection page
This should be moved to a different method/function
2021-09-18 17:01:17 +02:00
Marius Orcsik
e26b856fcc
Use fastjson properly 2021-08-15 13:41:01 +02:00
Marius Orcsik
b8343fd3a3
Don't crash if collections are nil when invoking Count() 2021-06-06 14:34:07 +02:00
Marius Orcsik
f09fdb0b8b
Disabled all GobEncoding/Decoding and BinaryMarshal/Unmarshal functionality 2021-04-02 13:52:04 +02:00
Marius Orcsik
ac3d908e7b
Adding placeholder Marshal/UnmarshalBinary and GobEncode/Decode 2021-03-14 19:39:49 +01:00
Marius Orcsik
a65a3e9048
Renamed internal functions used for JSON buffer write
This is done to ensure we're not overlapping with the future gob functionality
2021-03-14 18:31:13 +01:00
mariusor
0c3f57f637 Added IsNil function to assert to Object or ItemCollection before checking for nil values in Item interface 2021-02-02 14:18:16 +01:00
Marius Orcsik
b1c270db53
Modified ItemMatches method fo match changed ItemMatcher interface 2020-12-28 17:53:47 +01:00
Marius Orcsik
e0b519daad
Improved reflection based type conversion for collection types
This avoids some panics when the types are not compatible

I added tests for On*Collection* with all collection types
2020-08-30 16:03:34 +02:00
Marius Orcsik
656c40c1a7
Adding a default case for type conversion using the reflect package 2020-07-16 21:54:46 +02:00
Marius Orcsik
fac868b7c2
Added functionality for checking if objects are equal 2020-05-07 16:49:43 +02:00
Marius Orcsik
4d5fd9ff2d
Making Collection,OrderedCollectin and Item array implement the ItemMatcher interface 2020-03-29 18:26:30 +02:00
Marius Orcsik
81d01659b0
Change the order in which we output json fields for collections 2020-01-20 12:13:18 +01:00
Marius Orcsik
a309adb642
Refactoring loading of collection, actor and additional object types from json byte array 2019-12-21 15:14:43 +01:00
Marius Orcsik
6fe2b97669
Refactored a couple of the writeX encoding functions 2019-12-21 10:44:32 +01:00
Marius Orcsik
6bb34603e9
Refactored marshaling and removing bytes.Buffer in favor of a simple byte slice 2019-12-19 17:05:12 +01:00
Marius Orcsik
c295d6d15c
Added marshal Json method to Place, Profile, Relationship and Tombstone 2019-12-19 14:45:50 +01:00
Marius Orcsik
66855adb1e
Added collection/ordered_collection and their pages Json marshal methods 2019-12-19 14:45:50 +01:00
Marius Orcsik
cf3741d6bb
Removed the files with aliases for collections 2019-12-19 14:45:49 +01:00
Marius Orcsik
67aa065f9f
Some other places where we removed Object from names of things 2019-12-05 19:16:48 +01:00
Marius Orcsik
b89c9ee68c
Renamed ObjectID to ID 2019-12-05 19:02:15 +01:00
Marius Orcsik
bd2b51124f
Some improvements to copying collection information 2019-12-05 16:41:53 +01:00
Marius Orcsik
2abe35692b
Forgot to add the collection pages to OnXCollection functions 2019-12-04 19:33:15 +01:00
Marius Orcsik
463e77224a
Renamed the files as they refer now to just a single type 2019-12-04 16:16:32 +01:00
Renamed from collections.go (Browse further)