summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/messages.go
blob: 43f30634a8d34304434b14c2891b6f1e9f3e4b03 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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   ActivityStreamsObject
	APActivityType ActivityStreamsActivity
	GTSModel       interface{}
}

// // 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   ActivityStreamsObject
	APActivityType ActivityStreamsActivity
	GTSModel       interface{}
}