campaign

package
v0.0.0-...-ebd6d4f Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Campaign

type Campaign struct {
	ID         uint                  `json:"id"`
	Name       string                `json:"name"`
	App        app.App               `json:"app"`
	InfoURL    string                `json:"info_url"`
	CloudFeeds []cloudfeed.CloudFeed `json:"cloud_feeds"`
	StartTime  *time.Time            `json:"start_time,omitempty"`
	EndTime    *time.Time            `json:"end_time,omitempty"`
}

A campaign is a timeframe where we gather measurements with a specific goal.

func MakeCampaign

func MakeCampaign(name string, app app.App, infoURL string, cloudFeeds []cloudfeed.CloudFeed, startTime, endTime *time.Time) Campaign

Create a new Campaign.

type CampaignRepository

type CampaignRepository interface {
	Find(campaign Campaign) (Campaign, error)
	GetAll() ([]Campaign, error)
	Create(Campaign) (Campaign, error)
	Delete(Campaign) error
}

A CampaignRepository can load, store and delete campaigns.

Jump to

Keyboard shortcuts

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