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

     1  package privacy
     2  
     3  import "github.com/prebid/openrtb/v20/openrtb2"
     4  
     5  // PolicyWriter mutates an OpenRTB bid request with a policy's regulatory information.
     6  type PolicyWriter interface {
     7  	Write(req *openrtb2.BidRequest) error
     8  }
     9  
    10  // NilPolicyWriter implements the PolicyWriter interface but performs no action.
    11  type NilPolicyWriter struct{}
    12  
    13  // Write is hardcoded to perform no action with the OpenRTB bid request.
    14  func (NilPolicyWriter) Write(req *openrtb2.BidRequest) error {
    15  	return nil
    16  }