gotosocial/internal/transport
kim 7b1ccbd65a
[feature] add worker task serialization logic (#2989)
* improved server shutdown with more precise shutdown of modules + deferring of ALL of it

* move delivery and workers into separate files

* add worker task model and Serialize() / Deserialize() methods for message types

* start adding message serialize / deserialize tests

* start adding test cases

* update body rewinding to rely on standard library mechanism of r.GetBody()

* remove request rewinding (http.Client{} should already handle this)

* standard library already handles rewinding

* improved code comment

* move the newPOST() function contents to prepare(), fits better with current API

* add Serialize() / Deserialize() implementations for Delivery{} type

* finish writing FromClientAPI sserialize / deserialize tests

* start adding FromFediAPI{} serialize / deserialize test cases

* fix FromFediAPI{} tests

* add tests for delivery message type

* fix repeat code

* missing license header

* use testrig status and accounts for marshal / unmarshaling tests

* add a specific test for checking account RSA keys are preserved
2024-06-20 17:06:20 +00:00
..
delivery [feature] add worker task serialization logic (#2989) 2024-06-20 17:06:20 +00:00
controller.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00
deliver.go [feature] add worker task serialization logic (#2989) 2024-06-20 17:06:20 +00:00
dereference.go [bugfix] Set the Host header within the signing transport (#2799) 2024-04-02 14:28:36 +02:00
derefinstance.go [bugfix] Set the Host header within the signing transport (#2799) 2024-04-02 14:28:36 +02:00
derefmedia.go [bugfix] Set the Host header within the signing transport (#2799) 2024-04-02 14:28:36 +02:00
finger_test.go [performance] overhaul struct (+ result) caching library for simplicity, performance and multiple-result lookups (#2535) 2024-01-19 12:57:29 +00:00
finger.go [bugfix] Set the Host header within the signing transport (#2799) 2024-04-02 14:28:36 +02:00
signing.go [chore] Roll back use of (created) pseudo-header pending #2991 (#2992) 2024-06-10 19:42:26 +01:00
transport_test.go [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
transport.go [performance] massively improved ActivityPub delivery worker efficiency (#2812) 2024-04-11 11:45:35 +02:00