summaryrefslogtreecommitdiff
path: root/internal/gtsmodel/messages.go
blob: 910c748981da6ad091878f7e215fa16d334efca8 (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
30
31
32
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
}