mailThreadCache

package
v0.0.0-...-c7bc9a1 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2015 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MailCache

type MailCache struct {
	MailId    bson.ObjectId `bson:"_id"`
	Read      bool          `bson:"read"`
	From      bson.ObjectId `bson:"from"`
	TimeStamp time.Time     `bson:"time"`
	Subject   string        `bson:"subject"`
}

func CreateMailCache

func CreateMailCache(m *mail.Mail) MailCache

func (*MailCache) Init

func (cache *MailCache) Init(m *mail.Mail)

type MailThreadCache

type MailThreadCache struct {
	ThreadId   bson.ObjectId `bson:"_id"` // this is the primary key
	MailCaches []MailCache   `bson:"mailCache"`
}

func CreateMailThreadCache

func CreateMailThreadCache(threadId bson.ObjectId, m *mail.Mail) MailThreadCache

func (*MailThreadCache) AddMailToMailThreadCache

func (mTCache *MailThreadCache) AddMailToMailThreadCache(mTId bson.ObjectId, m *mail.Mail)

Jump to

Keyboard shortcuts

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