jobs

package
v1.0.0-develop.3 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2018 License: GPL-3.0 Imports: 16 Imported by: 4

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 RetryOnFail

type RetryOnFail struct {
	Pod   *models.Pod
	Send  func() error
	After []time.Duration
	// contains filtered or unexported fields
}

func (RetryOnFail) Run

func (retry RetryOnFail) Run()

type Session

type Session struct{}

func (Session) Run

func (s Session) Run()

Run will clean-up all sessions older then two days

type TelegramErrorResponse

type TelegramErrorResponse struct {
	Ok          bool   `json:"ok"`
	ErrorCode   int    `json:"error_code"`
	Description string `json:"description"`
}

type TelegramMessage

type TelegramMessage struct {
	Message struct {
		From struct {
			ID int `json:"id"`
		} `json:"from"`
		Chat struct {
			ID int `json:"id"`
		} `json:"chat"`
		Text string `json:"text"`
	} `json:"message"`
}

type TelegramReceiver

type TelegramReceiver struct {
	Body []byte
}

func (TelegramReceiver) Run

func (receiver TelegramReceiver) Run()

type TelegramWebhook

type TelegramWebhook struct {
	Token, Url string
}

func (TelegramWebhook) Run

func (webhook TelegramWebhook) Run()

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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