messages

package
v0.3.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 12, 2022 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FromClientAPI

type FromClientAPI struct {
	APObjectType   string
	APActivityType string
	GTSModel       interface{}
	OriginAccount  *gtsmodel.Account
	TargetAccount  *gtsmodel.Account
}

FromClientAPI wraps a message that travels from the client API into the processor.

type FromFederator

type FromFederator struct {
	APObjectType     string            // what is the object type of this message? eg., Note, Profile etc.
	APActivityType   string            // what is the activity type of this message? eg., Create, Follow etc.
	APIri            *url.URL          // what is the IRI ID of this activity?
	GTSModel         interface{}       // representation of this object if it's already been converted into our internal gts model
	ReceivingAccount *gtsmodel.Account // which account owns the inbox that this activity was posted to?
}

FromFederator wraps a message that travels from the federator into the processor.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL