processing

package
v0.17.0 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2024 License: AGPL-3.0 Imports: 47 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetParseMentionFunc added in v0.2.2

func GetParseMentionFunc(state *state.State, federator *federation.Federator) gtsmodel.ParseMentionFunc

GetParseMentionFunc returns a new ParseMentionFunc using the provided state and federator. State is used for doing local database lookups; federator is used for remote account lookups (if necessary).

Types

type Processor

type Processor struct {
	// contains filtered or unexported fields
}

Processor groups together processing functions and sub processors for handling actions + events coming from either the client or federating APIs.

Many of the functions available through this struct or sub processors will trigger asynchronous processing via the workers contained in state.

func NewProcessor

func NewProcessor(
	cleaner *cleaner.Cleaner,
	converter *typeutils.Converter,
	federator *federation.Federator,
	oauthServer oauth.Server,
	mediaManager *mm.Manager,
	state *state.State,
	emailSender email.Sender,
	visFilter *visibility.Filter,
	intFilter *interaction.Filter,
) *Processor

NewProcessor returns a new Processor.

func (*Processor) Account added in v0.8.0

func (p *Processor) Account() *account.Processor

func (*Processor) Admin added in v0.8.0

func (p *Processor) Admin() *admin.Processor

func (*Processor) AdvancedMigrations added in v0.17.0

func (p *Processor) AdvancedMigrations() *advancedmigrations.Processor

func (*Processor) AppCreate

func (*Processor) Conversations added in v0.17.0

func (p *Processor) Conversations() *conversations.Processor

func (*Processor) Fedi added in v0.8.0

func (p *Processor) Fedi() *fedi.Processor

func (*Processor) FiltersV1 added in v0.15.0

func (p *Processor) FiltersV1() *filtersv1.Processor

func (*Processor) FiltersV2 added in v0.16.0

func (p *Processor) FiltersV2() *filtersv2.Processor

func (*Processor) InstanceGetRules added in v0.12.0

func (p *Processor) InstanceGetRules(ctx context.Context) ([]apimodel.InstanceRule, gtserror.WithCode)

func (*Processor) InstanceGetV1 added in v0.7.0

func (p *Processor) InstanceGetV1(ctx context.Context) (*apimodel.InstanceV1, gtserror.WithCode)

func (*Processor) InstanceGetV2 added in v0.7.0

func (p *Processor) InstanceGetV2(ctx context.Context) (*apimodel.InstanceV2, gtserror.WithCode)

func (*Processor) InstancePeersGet added in v0.3.7

func (p *Processor) InstancePeersGet(ctx context.Context, includeSuspended bool, includeOpen bool, flat bool) (interface{}, gtserror.WithCode)

func (*Processor) InteractionRequests added in v0.17.0

func (p *Processor) InteractionRequests() *interactionrequests.Processor

func (*Processor) List added in v0.10.0

func (p *Processor) List() *list.Processor

func (*Processor) Markers added in v0.11.0

func (p *Processor) Markers() *markers.Processor

func (*Processor) Media added in v0.8.0

func (p *Processor) Media() *media.Processor

func (*Processor) OAuthHandleAuthorizeRequest added in v0.3.5

func (p *Processor) OAuthHandleAuthorizeRequest(w http.ResponseWriter, r *http.Request) gtserror.WithCode

func (*Processor) OAuthHandleTokenRequest added in v0.3.5

func (p *Processor) OAuthHandleTokenRequest(r *http.Request) (map[string]interface{}, gtserror.WithCode)

func (*Processor) OAuthValidateBearerToken added in v0.7.0

func (p *Processor) OAuthValidateBearerToken(r *http.Request) (oauth2.TokenInfo, error)

func (*Processor) Polls added in v0.13.0

func (p *Processor) Polls() *polls.Processor

func (*Processor) PreferencesGet added in v0.9.0

func (p *Processor) PreferencesGet(ctx context.Context, accountID string) (*apimodel.Preferences, gtserror.WithCode)

func (*Processor) Report added in v0.8.0

func (p *Processor) Report() *report.Processor

func (*Processor) Search added in v0.10.0

func (p *Processor) Search() *search.Processor

func (*Processor) Status added in v0.8.0

func (p *Processor) Status() *status.Processor

func (*Processor) Stream added in v0.8.0

func (p *Processor) Stream() *stream.Processor

func (*Processor) Tags added in v0.17.0

func (p *Processor) Tags() *tags.Processor

func (*Processor) Timeline added in v0.10.0

func (p *Processor) Timeline() *timeline.Processor

func (*Processor) User added in v0.8.0

func (p *Processor) User() *user.Processor

func (*Processor) Workers added in v0.11.0

func (p *Processor) Workers() *workers.Processor

Jump to

Keyboard shortcuts

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