Commit graph

533 commits

Author SHA1 Message Date
Marius Orcsik
6fe2b97669
Refactored a couple of the writeX encoding functions 2019-12-21 10:44:32 +01:00
Marius Orcsik
dafd82896b
Moving unmarshal files to decoding 2019-12-21 10:39:40 +01:00
Marius Orcsik
b973dafdba
Fix iri collection marshaling 2019-12-19 21:03:31 +01:00
Marius Orcsik
147cc84d20
Forgot preferredUsername property 2019-12-19 19:54:33 +01:00
Marius Orcsik
ed094c68d6
Merge pull request #8 from go-ap/custom-marshalers
Custom Marshalers for the vocab structs
2019-12-19 17:16:22 +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
22f934b796
Fix rebase artefact 2019-12-19 14:47:32 +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
1659f7231e
Added question Json marshal 2019-12-19 14:45:49 +01:00
Marius Orcsik
c4d6f93c22
Added actor Json marshal 2019-12-19 14:45:49 +01:00
Marius Orcsik
cf3741d6bb
Removed the files with aliases for collections 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
24fa9f805d
Added some test todos 2019-12-15 19:01:29 +01:00
Marius Orcsik
9cd8cd6074
Removed local client package 2019-12-10 18:19:59 +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
df62354866
Some cleanups on helper OnXXX functions 2019-12-05 16:42:27 +01:00
Marius Orcsik
bd2b51124f
Some improvements to copying collection information 2019-12-05 16:41:53 +01:00
Marius Orcsik
3d94dd494e
Removed issue #1 from the readme 2019-12-04 19:34:41 +01:00
Marius Orcsik
e66f1da47a
Add Actor type to ToObject handling 2019-12-04 19:34:04 +01:00
Marius Orcsik
2abe35692b
Forgot to add the collection pages to OnXCollection functions 2019-12-04 19:33:15 +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
463e77224a
Renamed the files as they refer now to just a single type 2019-12-04 16:16:32 +01:00
Marius Orcsik
05993b7914
Added Recipients and Clean to Actor type 2019-12-03 21:58:05 +01:00
Marius Orcsik
48db6d24ad
Renamed OnPerson to OnActor 2019-12-03 21:53:11 +01:00
Marius Orcsik
b8b0448aff
Merge pull request #7 from go-ap/crossing_the_streams
Merging back the Activitystreams package
2019-12-03 21:12:39 +01:00
Marius Orcsik
bf3906d5fb
Added the PublicKey property from the auth package 2019-12-03 21:00:01 +01:00
Marius Orcsik
79e39d3c2b
Added the Object related Source and collection properties 2019-12-03 20:50:26 +01:00
Marius Orcsik
cd46437bf2
Moved integration tests back to their own folder 2019-12-03 20:45:26 +01:00
Marius Orcsik
882dcd90be
Made the ActivityPub named collections be aliases for OrderedCollection 2019-12-03 20:22:47 +01:00
Marius Orcsik
b3a4fef49a
Fixed the test value for last failing test 2019-12-03 20:12:47 +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
72a9ade82d Add 'streams/' from commit 'f968addfe0e35bbee21ed1233ecacf65391e3f59'
git-subtree-dir: streams
git-subtree-mainline: 0ad2174ed0
git-subtree-split: f968addfe0
2019-12-03 16:33:20 +01:00
Marius Orcsik
f968addfe0
Modified GetID method to not return a pointer
ObjectID type has now a IsValid method
2019-12-03 16:26:43 +01:00
Marius Orcsik
23227e2552
Removed duplicated tests as the types are aliases 2019-12-03 16:26:07 +01:00
Marius Orcsik
3a58b1d8b6
Adding collection types to ToObject
Using Flatten for Object.Replies normalization
2019-12-03 16:15:10 +01:00
Marius Orcsik
1fcca5958e
Restructured the Collection,CollectionPage,OrderedCollection,OrderedCollectionPage types to be stand-alone
Moved functionality to their own files
2019-12-03 16:05:39 +01:00
Marius Orcsik
fa6ec9411c
Making the Mention type an alias for Link 2019-12-03 15:33:20 +01:00
Marius Orcsik
8b835611d5
Restructured the Activity,IntransitiveActivity,Question types to be stand-alone
Moved functionality to its own file
2019-12-03 15:33:00 +01:00
Marius Orcsik
52e8c9c266
Restructured the Tombstone object to be stand-alone
Moved functionality to its own file
2019-12-03 15:07:00 +01:00
Marius Orcsik
921185b572
Restructured the Relationship object to be stand-alone
Moved functionality to its own file
2019-12-03 13:45:06 +01:00
Marius Orcsik
fa60a7c223
Restructured the Profile object to be stand-alone
Moved functionality to its own file
2019-12-03 13:36:05 +01:00