Help us shape the future of Go! Take the 2026 Go Developer Survey

incoming

package
v3.1.13 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2026 License: MIT Imports: 27 Imported by: 0

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

Source Files

  • incoming.go
  • incoming_handler.go

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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