rest

package
v0.0.1-v20240505 Latest Latest
Warning

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

Go to latest
Published: May 5, 2024 License: BSD-3-Clause Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitIndex

func InitIndex()

func Live

func Live(w http.ResponseWriter, _ *http.Request)

Types

type Controller

type Controller interface {
	Index(w http.ResponseWriter, r *http.Request)
	IndexFaviconIco(w http.ResponseWriter, r *http.Request)
	IndexFaviconSvg(w http.ResponseWriter, r *http.Request)
	IndexCss(w http.ResponseWriter, r *http.Request)
	IndexJs(w http.ResponseWriter, r *http.Request)
	IndexJsMimeParser(w http.ResponseWriter, r *http.Request)
	GetEml(w http.ResponseWriter, r *http.Request)
	DeleteMails(w http.ResponseWriter, r *http.Request)
	SeekMails(w http.ResponseWriter, r *http.Request)
	UploadMail(w http.ResponseWriter, r *http.Request)
}

type DeleteMailsResult

type DeleteMailsResult struct {
	NumDeleted int64
}

type SeekMailsResult

type SeekMailsResult struct {
	Id    int64        `json:"id"`
	Total int64        `json:"total"`
	Limit int          `json:"limit"`
	Size  int          `json:"size"`
	Data  []model.Mail `json:"data"`
}

Jump to

Keyboard shortcuts

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