incoming

package
v1.21.11 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 26 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(ctx context.Context) error

Types

type Attachment

type Attachment struct {
	Name    string
	Content []byte
}

type MailContent

type MailContent struct {
	Content     string
	Attachments []*Attachment
}

type MailHandler

type MailHandler interface {
	Handle(ctx context.Context, content *MailContent, doer *user_model.User, payload []byte) error
}

type ReplyHandler

type ReplyHandler struct{}

ReplyHandler handles incoming emails to create a reply from them

func (*ReplyHandler) Handle

func (h *ReplyHandler) Handle(ctx context.Context, content *MailContent, doer *user_model.User, payload []byte) error

type UnsubscribeHandler

type UnsubscribeHandler struct{}

UnsubscribeHandler handles unwatching issues/pulls

func (*UnsubscribeHandler) Handle

func (h *UnsubscribeHandler) Handle(ctx context.Context, _ *MailContent, doer *user_model.User, payload []byte) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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