jobs

package
v1.0.0-alpha.10 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2018 License: GPL-3.0 Imports: 14 Imported by: 7

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dispatcher

type Dispatcher struct {
	User    models.User
	Message interface{}
	Retract bool
}

func (*Dispatcher) Comment

func (dispatcher *Dispatcher) Comment(comment models.Comment)

func (*Dispatcher) Contact

func (dispatcher *Dispatcher) Contact(contact models.AspectMembership)

func (*Dispatcher) Like

func (dispatcher *Dispatcher) Like(like models.Like)

func (*Dispatcher) RelayComment

func (dispatcher *Dispatcher) RelayComment(entity federation.MessageComment)

func (*Dispatcher) RelayLike

func (dispatcher *Dispatcher) RelayLike(entity federation.MessageLike)

func (*Dispatcher) RelayRetraction

func (dispatcher *Dispatcher) RelayRetraction(entity federation.MessageRetract)

func (Dispatcher) Run

func (dispatcher Dispatcher) Run()

func (*Dispatcher) StatusMessage

func (dispatcher *Dispatcher) StatusMessage(post models.Post)

type FetchAuthor

type FetchAuthor struct {
	Author string
	Person models.Person
	Err    error
}

func (*FetchAuthor) Run

func (fetch *FetchAuthor) Run()

type Receiver

type Receiver struct {
	Message federation.Message
	Guid    string
}

func (*Receiver) CheckAuthor

func (receiver *Receiver) CheckAuthor(author string) (models.Person, bool)

func (*Receiver) Comment

func (receiver *Receiver) Comment(entity federation.MessageComment)

func (*Receiver) Contact

func (receiver *Receiver) Contact(entity federation.MessageContact)

func (*Receiver) Like

func (receiver *Receiver) Like(entity federation.MessageLike)

func (*Receiver) Profile

func (receiver *Receiver) Profile(entity federation.MessageProfile)

func (*Receiver) Reshare

func (receiver *Receiver) Reshare(entity federation.MessageReshare)

func (*Receiver) Retraction

func (r *Receiver) Retraction(entity federation.MessageRetract)

func (Receiver) Run

func (receiver Receiver) Run()

func (*Receiver) StatusMessage

func (receiver *Receiver) StatusMessage(entity federation.MessagePost)

type Session

type Session struct{}

func (Session) Run

func (s Session) Run()

Run will clean-up all sessions older then two days

Jump to

Keyboard shortcuts

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