migrations

package
v0.0.0-...-7e23e3a Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2020 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var AdGroupsParameters = map[string]string{
	"location":       "Location",
	"age":            "Age",
	"gender":         "Gender",
	"topics":         "Topics",
	"languages":      "Languages",
	"keyword":        "Keyword",
	"channelID":      "ChannelID",
	"adSchedule":     "AdSchedule",
	"audience":       "Audience",
	"customAudience": "Custom Audience",
	"devices":        "Devices",
	"placement":      "Placement",
}

Functions

func Migrate

func Migrate(uri string, migrationStatus int, redisConnURI string)

func ReadMigrationsCSV

func ReadMigrationsCSV(str map[string]string, filename string)

func ReadMigrationsFile

func ReadMigrationsFile(str map[string]string, filename string)

func ReadMigrationsFileCC

func ReadMigrationsFileCC(str map[string]string, filename string)

Types

type LocationCSV

type LocationCSV struct {
	CriteriaID    string `csv:"Criteria ID"`
	Name          string `csv:"Name"`
	CanonicalName string `csv:"Canonical Name"`
	ParentID      string `csv:"Parent ID"`
	CountryCode   string `csv:"Country Code"`
	TargetType    string `csv:"Target Type"`
}

Jump to

Keyboard shortcuts

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