report

package
v0.0.0-...-f02d9f3 Latest Latest
Warning

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

Go to latest
Published: May 4, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMessageHtmlBody

func GetMessageHtmlBody(message store.Message) string

Types

type BarData

type BarData struct {
	Date     string
	Messages int
}

type Chart

type Chart []BarData

type JsonReport

type JsonReport struct {
	Query     string
	ChartData Chart
	Messages  []*MessageWithHtml
}

func GetJsonReport

func GetJsonReport(opt QueryOptions, svc *store.Service) JsonReport

type MessageWithHtml

type MessageWithHtml struct {
	store.Message
	BodyHtml template.HTML
}

func FillInHtmlBody

func FillInHtmlBody(messages []*store.Message) []*MessageWithHtml

type QueryOptions

type QueryOptions struct {
	StartDate     string
	EndDate       string
	Timezone      string
	Participants  string
	BodyOrSubject string
	Label         string
	InboxUrl      string
	Size          int
	Starred       bool
	SortField     string
	SortAscending bool
	Query         string
}

Jump to

Keyboard shortcuts

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