gotosocial/internal/gtsmodel/messages.go

29 lines
927 B
Go
Raw Normal View History

2021-05-15 17:21:41 +02:00
package gtsmodel
2021-05-16 20:04:12 +02:00
// // ToClientAPI wraps a message that travels from the processor into the client API
// type ToClientAPI struct {
// APObjectType ActivityStreamsObject
// APActivityType ActivityStreamsActivity
// Activity interface{}
// }
2021-05-15 17:21:41 +02:00
// FromClientAPI wraps a message that travels from client API into the processor
type FromClientAPI struct {
APObjectType ActivityStreamsObject
APActivityType ActivityStreamsActivity
2021-05-16 20:04:12 +02:00
GTSModel interface{}
2021-05-15 17:21:41 +02:00
}
2021-05-16 20:04:12 +02:00
// // ToFederator wraps a message that travels from the processor into the federator
// type ToFederator struct {
// APObjectType ActivityStreamsObject
// APActivityType ActivityStreamsActivity
// GTSModel interface{}
// }
2021-05-15 17:21:41 +02:00
// FromFederator wraps a message that travels from the federator into the processor
type FromFederator struct {
APObjectType ActivityStreamsObject
APActivityType ActivityStreamsActivity
2021-05-16 20:04:12 +02:00
GTSModel interface{}
2021-05-15 17:21:41 +02:00
}