mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2024-11-25 18:56:13 +03:00
d839f27c30
* Follows -- create and undo, both remote and local * Statuses -- federate new posts, including media, attachments, CWs and image descriptions.
32 lines
946 B
Go
32 lines
946 B
Go
package gtsmodel
|
|
|
|
// // ToClientAPI wraps a message that travels from the processor into the client API
|
|
// type ToClientAPI struct {
|
|
// APObjectType ActivityStreamsObject
|
|
// APActivityType ActivityStreamsActivity
|
|
// Activity interface{}
|
|
// }
|
|
|
|
// FromClientAPI wraps a message that travels from client API into the processor
|
|
type FromClientAPI struct {
|
|
APObjectType string
|
|
APActivityType string
|
|
GTSModel interface{}
|
|
OriginAccount *Account
|
|
TargetAccount *Account
|
|
}
|
|
|
|
// // ToFederator wraps a message that travels from the processor into the federator
|
|
// type ToFederator struct {
|
|
// APObjectType ActivityStreamsObject
|
|
// APActivityType ActivityStreamsActivity
|
|
// GTSModel interface{}
|
|
// }
|
|
|
|
// FromFederator wraps a message that travels from the federator into the processor
|
|
type FromFederator struct {
|
|
APObjectType string
|
|
APActivityType string
|
|
GTSModel interface{}
|
|
ReceivingAccount *Account
|
|
}
|