Commit graph

60 commits

Author SHA1 Message Date
Marius Orcsik
79c0987785
Fix gob encoding the URL 2022-03-19 20:25:59 +01: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
72008812b1
Simplify the Type gob encode/decode 2022-01-13 16:44:04 +01:00
mariusor
4792d825cd
Adding more gob encoding/decoding for specific object types 2022-01-12 17:51:04 +01:00
mariusor
da9b05373d
Move gob encode/decode to their respective separate files 2022-01-12 16:49:45 +01:00
mariusor
70cf14b80e
Adding some trial and error over recognized types for gob decoding an item's properties 2022-01-12 15:40:11 +01:00
mariusor
fb7fbc1984
Use a specific type for IRI.GetType 2022-01-12 15:34:59 +01:00
Marius Orcsik
98500a23a4
Adding gob encoding for an object 2022-01-02 16:25:28 +01:00
Marius Orcsik
bafe58846f
Added source gob marshal/unmarshal 2022-01-02 16:22:56 +01:00
Marius Orcsik
59b142d1f6
Changed Object.URL property to be an Item not just a link or iri 2022-01-02 16:21:46 +01:00
Marius Orcsik
b32c7ce9db
Renamed gobEncode string like function 2022-01-02 16:19:08 +01:00
mariusor
f00af9750d
Be consistent in how we encode stringy types
Namely as []byte slices
2021-12-30 19:49:25 +01:00
mariusor
a7d54ee31e
Added gob Marshal/Unmarshal for ActivityVocabularyType type 2021-12-30 16:22:15 +01:00
mariusor
2f50a0196d
Added gob Marshal/Unmarshal for MimeType type 2021-12-30 16:15:16 +01:00
Marius Orcsik
e2db125414
Aligned types in the Objects interface 2021-11-14 21:18:05 +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
a8126635d3 Fix some linting warnings 2021-11-12 19:10:31 +01:00
Marius Orcsik
bd0dbddb26
Updated comment for the Relationship object 2021-11-07 15:06:16 +01:00
Marius Orcsik
e26b856fcc
Use fastjson properly 2021-08-15 13:41:01 +02:00
Marius Orcsik
73041d04eb
Replace jsonparser to fastjson for parsing json 2021-08-14 18:34:02 +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
247f1fbf22 Removed flatten functionality from here 2021-01-13 10:52:50 +01:00
Marius Orcsik
fe5b14f0ba
Added ToLink and OnLink functions 2020-12-28 14:59:16 +01:00
Marius Orcsik
32d4cee9bd
Uniform receiver names for MimeType methods 2020-12-28 14:58:41 +01: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
57c015a8e9
Refactored types a bit 2020-06-30 13:35:04 +02:00
Marius Orcsik
342a261a17
Improved ItemCollectionDeduplication
More tests for object equality method
2020-05-15 15:18:20 +02:00
Marius Orcsik
fac868b7c2
Added functionality for checking if objects are equal 2020-05-07 16:49:43 +02:00
Marius Orcsik
333ff2b6c2
Having all activitypub vocabulary types available in a slice 2020-03-23 13:08:15 +01:00
Marius Orcsik
db8e40c894
Added proper Link Json marshaling
Fix some corner cases for Link unmarshaling

Small cleanups
2019-12-22 14:08:56 +01:00
Marius Orcsik
b912910ef1
Refactoring loading of object/intransitive activity/activity types from json byte array 2019-12-21 11:05:38 +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
c4d6f93c22
Added actor Json marshal 2019-12-19 14:45:49 +01:00
Marius Orcsik
4599863fae
Added Activity/IntransitiveActivity/Question Json marshaling and tests 2019-12-19 14:45:24 +01:00
Marius Orcsik
8af476849f
Completed functionality of Object.MarshalJSON
Added a couple more tests

Added proper time.Duration to xsd:duration encoding
2019-12-19 14:44:48 +01:00
Marius Orcsik
8420879a85
Improvements to Object, NaturalLanguage and Source Json marshaling
Improvements to tests
2019-12-19 14:44:48 +01:00
Marius Orcsik
88cce1d2f9
Adding some marshaler functions for Object related types 2019-12-19 14:44:48 +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
0a9945a0d9
Moved object id to its own file 2019-12-05 16:43:55 +01:00
Marius Orcsik
57ad0db747
Moved nil LanguageRef constant to natural language file 2019-12-05 16:43:04 +01:00
Marius Orcsik
e66f1da47a
Add Actor type to ToObject handling 2019-12-04 19:34:04 +01:00
Marius Orcsik
4a6d2e2600
Added security namespace and moved constants to iri 2019-12-04 16:34:38 +01:00
Marius Orcsik
f05a08688f
Moved natural language values to their own file 2019-12-04 16:28:45 +01:00
Marius Orcsik
e1942ec531
Fixing some tests 2019-12-03 19:59:20 +01:00
Marius Orcsik
c3a38f35e7
Holy shit! Merged the activitystreams repo
Only 3 tests failing
2019-12-03 17:23:59 +01:00