messages

package
v0.15.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Apr 8, 2024 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 FromFediAPI added in v0.11.0

type FromFediAPI struct {
	APObjectType      string
	APActivityType    string
	APIri             *url.URL
	APObjectModel     interface{}       // Optional AP model of the Object of the Activity. Should be Accountable or Statusable.
	GTSModel          interface{}       // Optional GTS model of the Activity or Object.
	RequestingAccount *gtsmodel.Account // Remote account that posted this Activity to the inbox.
	ReceivingAccount  *gtsmodel.Account // Local account which owns the inbox that this Activity was posted to.
}

FromFediAPI wraps a message that travels from the federating API into the processor.

Jump to

Keyboard shortcuts

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