rest

package
v0.0.1-v20231111 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2023 License: BSD-3-Clause Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Live

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

Types

type Controller

type Controller interface {
	Index(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