diff options
| author | 2021-04-20 18:14:23 +0200 | |
|---|---|---|
| committer | 2021-04-20 18:14:23 +0200 | |
| commit | dafc3b5b92865b97be48456e02ad235f4c79cf4e (patch) | |
| tree | 0f97edf4377f406df321054d26e731ff5dcc6667 /internal/distributor | |
| parent | Api/v1/statuses (#11) (diff) | |
| download | gotosocial-dafc3b5b92865b97be48456e02ad235f4c79cf4e.tar.xz | |
linting + organizing
Diffstat (limited to 'internal/distributor')
| -rw-r--r-- | internal/distributor/distributor.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/distributor/distributor.go b/internal/distributor/distributor.go index 74b69c5b0..151c1b522 100644 --- a/internal/distributor/distributor.go +++ b/internal/distributor/distributor.go @@ -95,12 +95,14 @@ func (d *distributor) Stop() error { return nil } +// FromClientAPI wraps a message that travels from the client API into the distributor type FromClientAPI struct { APObjectType gtsmodel.ActivityStreamsObject APActivityType gtsmodel.ActivityStreamsActivity Activity interface{} } +// ToClientAPI wraps a message that travels from the distributor into the client API type ToClientAPI struct { APObjectType gtsmodel.ActivityStreamsObject APActivityType gtsmodel.ActivityStreamsActivity |
