Commit graph

37 commits

Author SHA1 Message Date
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
Marius Orcsik
2745a3c694
Moved shares and likes to object struct, as per the spec 2019-09-28 10:30:01 +03:00
Marius Orcsik
ed06508b7b
Sigh, local object/actor structs have just become more complicated 2019-09-27 16:35:20 +03:00
Marius Orcsik
334d80b393
Added ToObject/OnObject pairs for local Object 2019-09-09 20:21:45 +02:00
Marius Orcsik
706be92cc2
Improvements to how we set the typer function for Unmarshalling 2019-05-18 23:13:06 +02:00
Marius Orcsik
4a4928446c
Updated to activitystreams version with plural NaturalLanguageValues array type 2019-02-21 18:00:03 +01:00
Marius Orcsik
8b3fd85a7c
Reworking a lot of the dependencies between activitypub and activitystreams objects
It turns out extending one from the other is not that easy

Still broken test for tests/mocks/like_activity_with_iri_actor.json
2019-01-30 22:01:56 +01:00
Marius Orcsik
b987bcf379
Moved everything related to activitypub extensions to its own project 2019-01-22 16:38:46 +01:00
Marius Orcsik
d2d853feed
Move files to activitypub package 2017-09-12 10:31:45 +02:00
Marius Orcsik
85e7725ff0
Moved activity struct and functions to their own file 2017-09-11 23:12:28 +02:00
Marius Orcsik
51853428cb
Adding basic types for activity pub 2017-09-11 22:46:29 +02:00