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

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