Versions in this module Expand all Collapse all v1 v1.0.4 Sep 20, 2024 Changes in this version + const DBTableAccount + const DBTableContact + const DBTableReflect + const DefaultDBTimeOut + const DefaultDatabaseID + const DefaultFirestoreProjectID + func InitConf(c *FsCfg) + type BMailContact struct + Address string + Email string + NickName string + Remark string + type DbManager struct + func DbInst() *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 struct + DatabaseID string + KeyFilePath string + LocalRun bool + ProjectID string + func (c *FsCfg) String() string