campaign_manager

package
v0.1.2-alpha Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2024 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CampaignManager

type CampaignManager struct {
	Db     *sql.DB
	Logger slog.Logger
	// contains filtered or unexported fields
}

func NewCampaignManager

func NewCampaignManager(db *sql.DB, logger slog.Logger) *CampaignManager

func (*CampaignManager) Run

func (cm *CampaignManager) Run()

Run starts the campaign manager main blocking function must be executed in a go routine

func (*CampaignManager) StopCampaign

func (cm *CampaignManager) StopCampaign(campaignUniqueId string)

this function gets called from the API server handlers, when user either pauses or cancels the campaign

type CampaignMessage

type CampaignMessage struct {
	Campaign *runningCampaign `json:"campaign"`
	Contact  model.Contact    `json:"contact"`
}

Jump to

Keyboard shortcuts

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