-
Notifications
You must be signed in to change notification settings - Fork 739
/
activity.go
27 lines (23 loc) · 1.23 KB
/
activity.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package config
type AllowActivities struct {
SyncUser Activity `mapstructure:"syncUser" json:"syncUser"`
FetchBids Activity `mapstructure:"fetchBids" json:"fetchBids"`
EnrichUserFPD Activity `mapstructure:"enrichUfpd" json:"enrichUfpd"`
ReportAnalytics Activity `mapstructure:"reportAnalytics" json:"reportAnalytics"`
TransmitUserFPD Activity `mapstructure:"transmitUfpd" json:"transmitUfpd"`
TransmitPreciseGeo Activity `mapstructure:"transmitPreciseGeo" json:"transmitPreciseGeo"`
TransmitUniqueRequestIds Activity `mapstructure:"transmitUniqueRequestIds" json:"transmitUniqueRequestIds"`
TransmitTids Activity `mapstructure:"transmitTid" json:"transmitTid"`
}
type Activity struct {
Default *bool `mapstructure:"default" json:"default"`
Rules []ActivityRule `mapstructure:"rules" json:"rules"`
}
type ActivityRule struct {
Condition ActivityCondition `mapstructure:"condition" json:"condition"`
Allow bool `mapstructure:"allow" json:"allow"`
}
type ActivityCondition struct {
ComponentName []string `mapstructure:"componentName" json:"componentName"`
ComponentType []string `mapstructure:"componentType" json:"componentType"`
}