mongodb

package
v1.15.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 30, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

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) Add

func (c *EmailHostColl) Add(emailHost *models.EmailHost) (*models.EmailHost, error)

func (*EmailHostColl) Delete

func (c *EmailHostColl) Delete() error

func (*EmailHostColl) EnsureIndex

func (c *EmailHostColl) EnsureIndex(ctx context.Context) error

func (*EmailHostColl) Find

func (c *EmailHostColl) Find() (*models.EmailHost, error)

func (*EmailHostColl) GetCollectionName

func (c *EmailHostColl) GetCollectionName() string

func (*EmailHostColl) Update

func (c *EmailHostColl) Update(emailHost *models.EmailHost) (*models.EmailHost, error)

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL