Documentation ¶
Index ¶
- type EmailHostColl
- func (c *EmailHostColl) Add(emailHost *models.EmailHost) (*models.EmailHost, error)
- func (c *EmailHostColl) Delete() error
- func (c *EmailHostColl) EnsureIndex(ctx context.Context) error
- func (c *EmailHostColl) Find() (*models.EmailHost, error)
- func (c *EmailHostColl) GetCollectionName() string
- func (c *EmailHostColl) Update(emailHost *models.EmailHost) (*models.EmailHost, error)
- type EmailServiceColl
- func (c *EmailServiceColl) AddEmailService(iEmailService *models.EmailService) (*models.EmailService, error)
- func (c *EmailServiceColl) DeleteEmailService() error
- func (c *EmailServiceColl) EnsureIndex(ctx context.Context) error
- func (c *EmailServiceColl) GetCollectionName() string
- func (c *EmailServiceColl) GetEmailService() (*models.EmailService, error)
- func (c *EmailServiceColl) UpdateEmailService(iEmailService *models.EmailService) (*models.EmailService, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmailHostColl ¶
type EmailHostColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewEmailHostColl ¶
func NewEmailHostColl() *EmailHostColl
func (*EmailHostColl) Delete ¶
func (c *EmailHostColl) Delete() error
func (*EmailHostColl) EnsureIndex ¶
func (c *EmailHostColl) EnsureIndex(ctx context.Context) error
func (*EmailHostColl) GetCollectionName ¶
func (c *EmailHostColl) GetCollectionName() string
type EmailServiceColl ¶
type EmailServiceColl struct { *mongo.Collection // contains filtered or unexported fields }
func NewEmailServiceColl ¶
func NewEmailServiceColl() *EmailServiceColl
func (*EmailServiceColl) AddEmailService ¶
func (c *EmailServiceColl) AddEmailService(iEmailService *models.EmailService) (*models.EmailService, error)
func (*EmailServiceColl) DeleteEmailService ¶
func (c *EmailServiceColl) DeleteEmailService() error
func (*EmailServiceColl) EnsureIndex ¶
func (c *EmailServiceColl) EnsureIndex(ctx context.Context) error
func (*EmailServiceColl) GetCollectionName ¶
func (c *EmailServiceColl) GetCollectionName() string
func (*EmailServiceColl) GetEmailService ¶
func (c *EmailServiceColl) GetEmailService() (*models.EmailService, error)
func (*EmailServiceColl) UpdateEmailService ¶
func (c *EmailServiceColl) UpdateEmailService(iEmailService *models.EmailService) (*models.EmailService, error)
Click to show internal directories.
Click to hide internal directories.