v1

package
v0.0.0-...-41cd4ca Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2022 License: AGPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Logic

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

Logic contains shared logic for the application.

func New

func New(ctx context.Context, c pub.Clock, d db.DB, k kv.KV, tokz *token.Tokenizer) (*Logic, error)

New created a new logic module.

func (*Logic) DeliverActivity

func (l *Logic) DeliverActivity(ctx context.Context, jid string, instanceID int64, activity ap.Activity) logic.Error

func (*Logic) GetInstanceSelf

func (l *Logic) GetInstanceSelf(ctx context.Context) (*models.Instance, logic.Error)

func (*Logic) GetOrCreateGeminiIdentity

func (l *Logic) GetOrCreateGeminiIdentity(ctx context.Context, hash string) (*models.GeminiIdentity, logic.Error)

func (*Logic) ProcessActivity

func (l *Logic) ProcessActivity(ctx context.Context, jid string, instanceID int64, actorIRI *url.URL, activity ap.Activity) logic.Error

func (*Logic) SetRunner

func (l *Logic) SetRunner(r runner.Runner)

Jump to

Keyboard shortcuts

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