mongodb

package
v0.0.0-...-ed0dbbb Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2024 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCampaignCreator

func NewCampaignCreator(impl *CampaignRepoImpl) repo.CampaignCreator

NewCampaignCreator is a function to create a new campaign creator

func NewCampaignFinder

func NewCampaignFinder(impl *CampaignRepoImpl) repo.CampaignFinder

NewCampaignFinder is a function to create a new campaign finder

Types

type CampaignRepoImpl

type CampaignRepoImpl struct {
	// contains filtered or unexported fields
}

CampaignRepoImpl is a struct to define the campaign repository implementation

func NewCampaignRepoImpl

func NewCampaignRepoImpl(rw *mongo.Client) *CampaignRepoImpl

NewCampaignRepoImpl is a function to create a new campaign repository implementation

func (*CampaignRepoImpl) Create

func (i *CampaignRepoImpl) Create(c context.Context, campaign *biz.Campaign) error

func (*CampaignRepoImpl) GetByID

func (i *CampaignRepoImpl) GetByID(c context.Context, id string) (*biz.Campaign, error)

func (*CampaignRepoImpl) List

Jump to

Keyboard shortcuts

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