Documentation ¶
Index ¶
- Constants
- func InitConf(c *FsCfg)
- type BMailContact
- type DbManager
- func (dm *DbManager) ActiveAccount(accountId string, level int8) error
- func (dm *DbManager) DeleteBinding(bmailAddr string, emailAddr string) error
- func (dm *DbManager) OperateAccount(bmailAddr string, emailAddr []string, isDel bool) error
- func (dm *DbManager) QueryAccount(bmailAddr string) (*common.BMailAccount, error)
- func (dm *DbManager) QueryContacts(address string, startAfterEmail string) ([]*pbs.ContactItem, error)
- func (dm *DbManager) QueryReflectByOneEmail(emailAddr string) (*common.EmailReflect, error)
- func (dm *DbManager) QueryReflectsByEmails(emailAddrs []string) (map[string]common.EmailReflect, error)
- func (dm *DbManager) UpdateAccountLevel(accountId string, level int8) error
- func (dm *DbManager) UpdateBinding(bmailAddr string, emailAddr string) error
- func (dm *DbManager) UpdateContactDetails(address string, contacts []*pbs.ContactItem, isDel bool) error
- type FsCfg
Constants ¶
View Source
const ( DefaultFirestoreProjectID = "dessage" DefaultDatabaseID = "bmail-contact" )
View Source
const ( DefaultDBTimeOut = 10 * time.Second DBTableAccount = "bmail-account" DBTableReflect = "email-reflect" DBTableContact = "bmail-contact" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BMailContact ¶
type DbManager ¶
type DbManager struct {
// contains filtered or unexported fields
}
func (*DbManager) ActiveAccount ¶
func (*DbManager) DeleteBinding ¶
func (*DbManager) OperateAccount ¶
func (*DbManager) QueryAccount ¶
func (dm *DbManager) QueryAccount(bmailAddr string) (*common.BMailAccount, error)
func (*DbManager) QueryContacts ¶
func (*DbManager) QueryReflectByOneEmail ¶
func (dm *DbManager) QueryReflectByOneEmail(emailAddr string) (*common.EmailReflect, error)
func (*DbManager) QueryReflectsByEmails ¶
func (*DbManager) UpdateAccountLevel ¶
func (*DbManager) UpdateBinding ¶
func (*DbManager) UpdateContactDetails ¶
Click to show internal directories.
Click to hide internal directories.