Marius Orcsik
f4e240055d
Removed unneeded types in favour of aliasing to Object
2019-01-30 20:50:50 +01:00
Marius Orcsik
6315ea0428
Added a more generic way of using custom activotystreams.Item compatible structs when unmarshalling from other packages
2019-01-30 17:39:26 +01:00
Marius Orcsik
b57e0c6e02
Add some marshalling tests back
2019-01-30 16:42:54 +01:00
Marius Orcsik
5cb8b6af39
Removing Actor as a separate type
...
The assumptions we were making for it (existence of collections, s/a) didn't match the activitystreams spec
Actor is now an interface and actor types are basically aliases for Object
Moved that functionality to the activitypub package
2019-01-30 16:21:57 +01:00
Marius Orcsik
ce595fadf3
Exposing the JSONGet* functions for activitystreams objects
2019-01-30 16:19:29 +01:00
Marius Orcsik
b826c6ce53
Removed GOPATH from Makefile as we're using go modules
2019-01-28 15:39:30 +01:00
Marius Orcsik
99cabdd26d
Removed circular dependencies
2019-01-24 11:43:14 +01:00
Marius Orcsik
6a208fd55a
Removed the integration tests
2019-01-24 11:42:15 +01:00
Marius Orcsik
3a8b2a4401
Organizing the versions is becoming a bit tricky
2019-01-24 11:09:02 +01:00
Marius Orcsik
101226ff0f
Organizing the versions is becoming a bit tricky
2019-01-24 11:08:17 +01:00
Marius Orcsik
a494fae1c6
Updated travis build
2019-01-23 12:57:25 +01:00
Marius Orcsik
09557994a6
Update README
2019-01-22 16:56:15 +01:00
Marius Orcsik
32ef8f0c59
Update README
2019-01-22 16:55:50 +01:00
Marius Orcsik
54f56b33e9
Moved everything related to activitystreams vocabulary to its own project
2019-01-22 16:44:27 +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
4961f06996
Added the begining of validation logic
2019-01-22 14:54:14 +01:00
Marius Orcsik
2c56aa99b8
Logging every request
2019-01-12 13:43:00 +01:00
Marius Orcsik
44523291c8
Export SignRequestFn and LogFn types
2019-01-12 13:34:36 +01:00
Marius Orcsik
4cc1329870
Updated coverage icon
2019-01-10 16:42:02 +01:00
Marius Orcsik
281b73cbc2
Moved to go-ap
2019-01-07 14:54:19 +01:00
Marius Orcsik
4bd3a14ffa
Adding the Accept: ld+json header for requests
2018-12-26 18:59:43 +01:00
Marius Orcsik
5577b25a88
Expose some interfaces
2018-12-26 16:48:23 +01:00
Marius Orcsik
aa810e474c
Added a basic http client which would understand AP things
...
This would represent the base for a future IRI dereference mechanism
2018-12-26 15:46:57 +01:00
Marius Orcsik
9e3d0a68a1
Added EndTime and Duration to object unmarshalling
2018-12-23 17:12:26 +01:00
Marius Orcsik
d1e2ae9598
Added icon and image properties to object unmarshalling
2018-12-23 17:10:11 +01:00
Marius Orcsik
a955ef13ec
Fixed source property unmarshalling
2018-12-16 13:19:19 +01:00
Marius Orcsik
88e637fb3f
Added jsonld tags for tombstone properties
2018-12-09 14:06:50 +01:00
Marius Orcsik
564e590de8
Change the type of Tombstone.FormerType property
2018-12-09 13:51:45 +01:00
Marius Orcsik
7f9c695d13
Fix loading to/bto/cc/bcc
...
Added unmarshalling test pair for them
Remove duplicate func for dynamic loading of as.Items
2018-12-08 15:45:21 +01:00
Marius Orcsik
3e752dee63
Added CC, Bto, BCC properties to the unmarshalling of the object
2018-12-08 14:47:43 +01:00
Marius Orcsik
db8a905f46
Reenabled object_with_replies unmarshalling test
2018-12-03 13:41:34 +01:00
Marius Orcsik
e9ef1a6ff5
Streamlined objects unmarshalling to get rid of duplicated work on same properties
2018-12-02 16:50:40 +01:00
Marius Orcsik
faef668a93
Merge pull request #6 from mariusor/objects-refactor
...
Factored out the objects' common properties
2018-12-02 15:52:44 +01:00
Marius Orcsik
269c06fbb2
Factored out the objects' common properties
2018-11-23 15:22:56 +01:00
Marius Orcsik
1955b6af31
Added Json unmarshalling for the Person tupe and its aliases
2018-11-22 13:48:40 +01:00
Marius Orcsik
4a4c72b09e
Added generic UnmarshalJSON for activitystreams package
2018-11-22 13:35:20 +01:00
Marius Orcsik
323d792a70
Added activitypub Object type
...
It extends the activitystreams one with the Source property
2018-11-21 12:26:20 +01:00
Marius Orcsik
80c6e5180c
Removed unnecessary file
2018-11-21 12:25:29 +01:00
Marius Orcsik
853389eb5f
Remove ContentType type in favour of MimeType
2018-11-21 12:25:12 +01:00
Marius Orcsik
db33a4e5b6
Adding Tag unmarshalling to Activity and Actor objects
2018-11-14 13:44:44 +01:00
Marius Orcsik
9dcc89db96
Adding Tag property unmarshalling for Objects
2018-11-14 13:42:08 +01:00
Marius Orcsik
c53d21a18e
Tag should be a collection
2018-11-14 12:52:24 +01:00
Marius Orcsik
9860c7cec8
Adding placeholder test functions
2018-11-10 22:37:06 +01:00
Marius Orcsik
e761de64be
Add First() method for ItemCollection and using it to return the type
2018-11-10 22:35:57 +01:00
Marius Orcsik
b18318b933
Final activity tests
2018-11-10 22:01:19 +01:00
Marius Orcsik
d999f49dfc
More object tests
2018-11-10 22:01:19 +01:00
Marius Orcsik
974ac4b91e
Another go-lint improvement
2018-11-05 18:05:02 +01:00
Marius Orcsik
7f770f728c
Fill some comments on methods
2018-11-05 17:32:09 +01:00
Marius Orcsik
347ce39251
Remove pre 1.11 GOPATH shenanigans
2018-11-05 17:11:00 +01:00
Marius Orcsik
1ff9ffddf4
Run coverage tests once for all packages
2018-11-05 15:03:06 +01:00