package
1.0.0
Repository: https://github.com/gunsluo/go-example.git
Documentation: pkg.go.dev

# Functions

CountEmailDocumentByWhere count email documents by condition from the db.
CountEmailRelationDocumentByWhere gets email relation document by condition from the db.
CountSMDocumentByWhere count short message documents by condition from the db.
EmailDocumentByEID gets a email document by eid from the db.
EmailDocumentByIDs gets list of email document by ids from the db.
EmailDocumentByWhere gets pagination list of email document by condition from the db.
EmailDocumentCreateIndexes create indexes to optimize the query.
EmailRelationDocumentByWhere gets email relation document by condition from the db.
EmailRelationDocumentCreateIndexes create indexes to optimize the query.
IsErrDuplicateKey return true.
IsErrNoDocuments return true.
SMDocumentByMID gets a short message document by mid from the db.
SMDocumentByWhere gets pagination list of short message document by condition from the db.
SMDocumentCreateIndexes create indexes to optimize the query.

# Constants

DefaultLimit default limit.
DefaultSESDBName default db name of ses.
DefaultSMSDBName default db name of sms.
EmailDocumentCollection the collection name of email.
EmailRelationDocumentCollection the collection name of email relation.
SMDocumentCollection the collection name of short message.

# Structs

EmailAttachment attachment in mail.
EmailContentSubDocument storing sub documents for email.
EmailDocument storing documents for email.
EmailDocumentWhere query condition.
EmailRelationDocument storing to addr relation document for email.
EmailRelationDocumentWhere query condition.
SMDocument storing documents for short message.
SMDocumentWhere query condition.