mariusor
|
52ce087a26
|
Adding some Format methods for custom printing of objects
|
2022-05-25 13:46:03 +02:00 |
|
mariusor
|
5c59dccd55
|
Improved IsNil to handle all known types
|
2022-05-25 13:41:52 +02:00 |
|
mariusor
|
a9858c9098
|
Unified error messages when being unable to convert to specific types using OnXXX helpers
|
2022-05-25 13:36:56 +02:00 |
|
mariusor
|
7c011e3a74
|
Added go fmt functionality for IRI to escape url query
|
2022-05-24 15:47:36 +02:00 |
|
mariusor
|
7ed0d30e7c
|
Removing unsafe from ToActor
This might be a future proof way of doing these conversions, but they contain new allocations
|
2022-05-24 12:14:32 +02:00 |
|
mariusor
|
a60c25cc5c
|
Added Equals method to intransitive activity
|
2022-05-24 11:03:40 +02:00 |
|
mariusor
|
e8c528edf3
|
Improvements to Equals methods for actor and activity
|
2022-05-24 10:56:26 +02:00 |
|
mariusor
|
4837641dc8
|
Converted the URL property to support an array of links as a value
|
2022-04-20 11:11:13 +02:00 |
|
mariusor
|
947bcada60
|
Improve Flatten function for collections and items
|
2022-03-23 16:19:40 +01:00 |
|
mariusor
|
fd7ce7b1fb
|
Improved documentation on the remaining OnXXX functions for custom objects
|
2022-03-22 11:47:50 +01:00 |
|
mariusor
|
2d4ccbceb8
|
Improved documentation on some OnXXX functions
|
2022-03-22 11:39:01 +01:00 |
|
Marius Orcsik
|
109a45e9a0
|
Added a ItemCollection.Normalize method
It allows us to return an the first element in a collection if there is just one
|
2022-03-20 15:15:07 +01:00 |
|
Marius Orcsik
|
0b791c7c7f
|
Fix CI pipeline
|
2022-03-19 20:30:00 +01:00 |
|
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
|
826f263bfe
|
Added 'integration' tests to the test run
|
2022-03-16 11:51:55 +01:00 |
|
Marius Orcsik
|
8eefc7992f
|
Fix json encoding for question.anyOf
|
2022-03-13 11:25:30 +01:00 |
|
mariusor
|
eed0561779
|
Fix flatting of intransitive activities
For the moment we don't flatten a Question's anyOf or oneOf properties
|
2022-03-11 16:47:56 +01:00 |
|
Marius Orcsik
|
d29b4fa0ae
|
Don't fail on properties that are missing when unmarshaling json
|
2022-03-06 13:34:18 +01:00 |
|
mariusor
|
16bd1c8aa0
|
Fix encoding actor.Streams property
|
2022-03-01 16:22:14 +01:00 |
|
mariusor
|
c61421fde8
|
Change type of Actor.Streams to be just an item collection
|
2022-01-28 12:47:59 +01:00 |
|
mariusor
|
8f025c2e36
|
Saving place.Units as byte array instead of trying any encoding
|
2022-01-26 15:24:39 +01:00 |
|
mariusor
|
a14c77aac8
|
Added public key decoding
|
2022-01-26 15:21:11 +01:00 |
|
Marius Orcsik
|
fbee7c1426
|
Fix IRI.IsObject tests
|
2022-01-23 16:55:13 +01:00 |
|
Marius Orcsik
|
60a9d0c085
|
Making the activitypub.IsObject just try to type assert
|
2022-01-23 16:53:15 +01:00 |
|
Marius Orcsik
|
d7f2e55bea
|
Add some extra test cases to iri IsObject test
|
2022-01-23 16:51:10 +01:00 |
|
mariusor
|
7b062fcd1f
|
Simplified some of the gob encoding and decoding
|
2022-01-14 16:23:28 +01:00 |
|
mariusor
|
aff990b584
|
Check for pointers if when evaluating if an item is an IRI
|
2022-01-14 16:21:57 +01:00 |
|
mariusor
|
8d289001b1
|
Store IRIs as their underlying byte array when encoding using gob
|
2022-01-14 16:21:28 +01:00 |
|
Marius Orcsik
|
41f034c70c
|
Added exported GobEncode/GobDecode functions
|
2022-01-13 20:56:01 +01:00 |
|
mariusor
|
2647d68b45
|
Fix activity type tests
|
2022-01-13 16:51:14 +01:00 |
|
mariusor
|
7121931940
|
Finish the implementation of gob encode/decode for Item interface
|
2022-01-13 16:50:08 +01:00 |
|
mariusor
|
f1d125288a
|
Use the typer function variable instead of directly calling the default one
|
2022-01-13 16:44:44 +01:00 |
|
mariusor
|
72008812b1
|
Simplify the Type gob encode/decode
|
2022-01-13 16:44:04 +01:00 |
|
mariusor
|
af0f5aa0ee
|
Adding gob encode/decode for place, profile, question, relationship, tombstone types
|
2022-01-13 12:22:34 +01:00 |
|
mariusor
|
3e9850f7d0
|
Adding gob encode/decode functionality for *Collection types
|
2022-01-12 18:57:45 +01:00 |
|
mariusor
|
80679b32e9
|
More gob decode types
|
2022-01-12 18:19:06 +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
|
f283750ff6
|
Added gob Encode/Decode for IRIs
|
2022-01-12 15:39:08 +01:00 |
|
mariusor
|
fb7fbc1984
|
Use a specific type for IRI.GetType
|
2022-01-12 15:34:59 +01:00 |
|
Marius Orcsik
|
b49c3b9ec0
|
Adding gob encoding for Actors
|
2022-01-02 16:26:16 +01:00 |
|
Marius Orcsik
|
25ecb40f69
|
Adding gob encoding for Activities and IntransitiveActivities
|
2022-01-02 16:26:06 +01:00 |
|
Marius Orcsik
|
98500a23a4
|
Adding gob encoding for an object
|
2022-01-02 16:25:28 +01:00 |
|
Marius Orcsik
|
30317634f5
|
Moved int gob write functions to the gob_encoding file
|
2022-01-02 16:24:24 +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
|
ea1a9658cd
|
Changed the PublicKey.Owner type to be an IRI
|
2022-01-02 16:20:23 +01:00 |
|
Marius Orcsik
|
b32c7ce9db
|
Renamed gobEncode string like function
|
2022-01-02 16:19:08 +01:00 |
|