messages

package
v0.10.0-rc3 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 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
	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.
	ReceivingAccount *gtsmodel.Account // Local account which 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