config

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EditConfig

func EditConfig() error

func Load

func Load() error

Types

type AdvMessagesConfiguration

type AdvMessagesConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

type Amqp

type Amqp struct {
	MqHost     string `json:"Host"`
	MqPort     string `json:"Port"`
	MqUsername string `json:"Username"`
	MqPassword string `json:"Password"`
}

type BudgetConfiguration

type BudgetConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type ChannelConfiguration

type ChannelConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type Configuration

type Configuration struct {
	Mediaplan                MediaplanConfiguration                `json:"mediaplan"`
	Budget                   BudgetConfiguration                   `json:"budget"`
	Channel                  ChannelConfiguration                  `json:"channel"`
	AdvMessages              AdvMessagesConfiguration              `json:"advMessages"`
	CustomersWithAdvertisers CustomersWithAdvertisersConfiguration `json:"customersWithAdvertisers"`
	DeletedSpotInfo          DeletedSpotInfoConfiguration          `json:"deletedSpotInfo"`
	Rank                     RanksConfiguration                    `json:"rank"`
	ProgramBreaks            ProgramBreaksConfiguration            `json:"programBreaks"`
	ProgramBreaksLight       ProgramBreaksLightConfiguration       `json:"programBreaksLight"`
	Spots                    SpotsConfiguration                    `json:"spots"`
	S3                       S3                                    `json:"s3"`
	Mongo                    Mongo                                 `json:"mongodb"`
	Amqp                     Amqp                                  `json:"amqp"`
	Database                 string                                `json:"database"`
	Url                      string                                `json:"url"`
	Cert                     string                                `json:"cert"`
	CertFile                 string                                `json:"certFile"`
	Password                 string                                `json:"password"`
	Client                   string                                `json:"client"`
	Timeout                  string                                `json:"timeout"`
	Token                    string                                `json:"token"`
}
var Config *Configuration

type CustomersWithAdvertisersConfiguration

type CustomersWithAdvertisersConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type DeletedSpotInfoConfiguration

type DeletedSpotInfoConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

type MediaplanConfiguration

type MediaplanConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type Mongo

type Mongo struct {
	Host       string `json:"Host"`
	Port       string `json:"Port"`
	AuthDB     string `json:"AuthDb"`
	DB         string `json:"Db"`
	Username   string `json:"Username"`
	Password   string `json:"Password"`
	CronBackup string `json:"CronBackup"`
}

type ProgramBreaksConfiguration

type ProgramBreaksConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type ProgramBreaksLightConfiguration

type ProgramBreaksLightConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

type RanksConfiguration

type RanksConfiguration struct {
	Cron    string `json:"cron"`
	Loading bool   `json:"loading"`
}

type S3

type S3 struct {
	S3AccessKeyId     string `json:"s3AccessKeyId"`
	S3SecretAccessKey string `json:"s3SecretAccessKey"`
	S3Region          string `json:"s3Region"`
	S3Endpoint        string `json:"s3Endpoint"`
	S3Debug           string `json:"s3Debug"`
	S3Bucket          string `json:"s3Bucket"`
	S3LocalDir        string `json:"s3LocalDir"`
}

type SpotsConfiguration

type SpotsConfiguration struct {
	Cron             string `json:"cron"`
	SellingDirection string `json:"sellingDirection"`
	Loading          bool   `json:"loading"`
}

Jump to

Keyboard shortcuts

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