Commit graph

317 commits

Author SHA1 Message Date
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
Marius Orcsik
77b0d9a7d1
Add activitystreams package to codecov setup 2018-11-05 13:20:37 +01:00
Marius Orcsik
4c79729b23
Updated jsonparser version 2018-11-04 20:37:44 +01:00
Marius Orcsik
37c93acd9c
More tests for activities 2018-11-04 20:31:04 +01:00
Marius Orcsik
25d0a8a258
More collections tests 2018-11-04 20:07:26 +01:00
Marius Orcsik
236859bbf5
Added a couple more tests 2018-11-04 19:06:46 +01:00
Marius Orcsik
1bdf697577
Renamed some jsonld functions 2018-11-03 19:55:56 +01:00
Marius Orcsik
af5b84bb45
Adding some more fine grained activity types validators 2018-11-01 15:54:23 +01:00
Marius Orcsik
9e4340bf26
Make URL properties accept array of IRI objects 2018-10-31 16:26:51 +01:00
Marius Orcsik
a9afedcc2b
Use external TEST_FLAGS env value if exists 2018-10-29 17:52:36 +01:00
Marius Orcsik
2a0f99eb24
Removed local jsonld.Unmarshaler interface in favour of encoding/json one 2018-10-29 17:26:21 +01:00
Marius Orcsik
c3d3a9cf93
Better comment annotations for properties 2018-10-24 11:31:05 +02:00
Marius Orcsik
c1f61e3a35
Adding Unmarshalling methods for CollectionPage and OrderedCollectionPage 2018-10-18 20:19:18 +02:00
Marius Orcsik
cbad1a2add
Removed some whitespaces that were confusing godoc 2018-10-18 11:58:37 +02:00
Marius Orcsik
896e7f40b0
Rename the Actor getter to GetActor
We should do this for future GetObject/GetActivity/samd for getting the underlying types
2018-10-18 11:24:54 +02:00
Marius Orcsik
9f13d82a18
Updated CollectionPage and OrderedCollectionPage 2018-10-18 10:53:19 +02:00
Marius Orcsik
e02ac198b1
Forgot to add go 1.11 to the build list 2018-10-13 09:45:22 +02:00
Marius Orcsik
3ac031f833
Removed pointer receiver from Collection.GetID 2018-10-11 22:05:48 +02:00
Marius Orcsik
e96053f255
Drop ImageOrLink interface and replace it with Item instead 2018-10-11 21:47:31 +02:00
Marius Orcsik
5d9b5f49ff
Adding missing types for specialized types of objects
No methods yet
2018-10-11 21:10:17 +02:00
Marius Orcsik
fdab453271
Added GetLink method to most of the types 2018-10-11 20:48:38 +02:00
Marius Orcsik
f21b60ad61
Remove URI type in favour of IRI 2018-10-11 20:13:34 +02:00
Marius Orcsik
56627df017
Make ObjectID an IRI alias 2018-10-11 20:01:11 +02:00
Marius Orcsik
784e85f7fc
Refactored most of the activitystreams-vocab structs to their own package 2018-10-11 11:26:00 +02:00
Marius Orcsik
d052fc4d64
Added current/first/last properties to collection objects 2018-10-10 17:13:21 +02:00
Marius Orcsik
a30fd8966a
Removed pointer receivers for Outbox::Collection() method 2018-10-04 21:27:33 +02:00
Marius Orcsik
034adbee2a
Adding the boilerplate methods for Collection and Item interfaces 2018-10-04 21:05:01 +02:00
Marius Orcsik
ae2c0a289b
Removed some pointer receivers for Collection type aliases where they weren't needed 2018-10-04 21:04:31 +02:00
Marius Orcsik
602911a7db
Refactored elements that were of CollectionInterface type to Item type so we can pass IRIs to them 2018-10-04 20:50:03 +02:00
Marius Orcsik
bb530d67be
We were skipping context unmarshalling 2018-10-04 18:27:14 +02:00
Marius Orcsik
d507b72a7a
Added UpdateActivity functionality 2018-10-02 11:22:38 +02:00
Marius Orcsik
e1d7e465d7
Added LikeActivity with IRI actor test 2018-09-06 21:56:46 +02:00