Documentation ¶
Index ¶
Constants ¶
View Source
const ( MAIL_TABLE_COUNT = 1 << 8 MAIL_TABLE_MASH = MAIL_TABLE_COUNT - 1 )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type DBObject ¶
type DBObject struct { Config ConfigDocument //配置 // contains filtered or unexported fields }
数据库父类
type MailDocument ¶
type MailDocument struct { Id uint64 "_id" TimeStamp uint64 "timestamp" Removed bool "removed" Data []byte "data" }
邮件文档
type MailObject ¶
type MailObject struct { DBObject // contains filtered or unexported fields }
邮件
var ( Mail *MailObject MailTableNameMap = make(map[int]string, MAIL_TABLE_COUNT) )
func (*MailObject) GetMailById ¶
func (object *MailObject) GetMailById(mailId uint64) (error, *MailDocument)
获取邮件详情
func (*MailObject) UpsertMailWithId ¶
func (object *MailObject) UpsertMailWithId(id uint64, update interface{}) error
更新
Click to show internal directories.
Click to hide internal directories.