github.com/prebid/prebid-server/v2@v2.18.0/privacy/activity.go (about)

     1  package privacy
     2  
     3  // Activity defines Prebid Server actions which can be controlled directly
     4  // by the publisher or via privacy policies.
     5  type Activity int
     6  
     7  const (
     8  	ActivitySyncUser Activity = iota + 1
     9  	ActivityFetchBids
    10  	ActivityEnrichUserFPD
    11  	ActivityReportAnalytics
    12  	ActivityTransmitUserFPD
    13  	ActivityTransmitPreciseGeo
    14  	ActivityTransmitUniqueRequestIDs
    15  	ActivityTransmitTIDs
    16  )
    17  
    18  func (a Activity) String() string {
    19  	switch a {
    20  	case ActivitySyncUser:
    21  		return "syncUser"
    22  	case ActivityFetchBids:
    23  		return "fetchBids"
    24  	case ActivityEnrichUserFPD:
    25  		return "enrichUfpd"
    26  	case ActivityReportAnalytics:
    27  		return "reportAnalytics"
    28  	case ActivityTransmitUserFPD:
    29  		return "transmitUfpd"
    30  	case ActivityTransmitPreciseGeo:
    31  		return "transmitPreciseGeo"
    32  	case ActivityTransmitUniqueRequestIDs:
    33  		return "transmitUniqueRequestIds"
    34  	case ActivityTransmitTIDs:
    35  		return "transmitTid"
    36  	}
    37  
    38  	return ""
    39  }