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 ¶
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)
Click to show internal directories.
Click to hide internal directories.