query

package
v0.0.0-...-19e15d3 Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2022 License: AGPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetInbox

func HandleGetInbox(ctx context.Context, qry cqrs.Query) (interface{}, error)

func HandleOpenEmail

func HandleOpenEmail(ctx context.Context, qry cqrs.Query) (interface{}, error)

Types

type GetInboxRequest

type GetInboxRequest struct {
	OrderBy string
	Limit   int
	Skip    int
	Reverse bool
	Search  *InboxSearch
}

type InboxData

type InboxData struct {
	Emails []*model.Email
}

type InboxSearch

type InboxSearch struct {
	To      string
	From    string
	Body    string
	Subject string
	Headers map[string]string
	After   time.Time
	Before  time.Time
}

type OpenEmailData

type OpenEmailData struct {
	Email *model.Email
}

type OpenEmailRequest

type OpenEmailRequest struct {
	EmailID int
}

Jump to

Keyboard shortcuts

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