github.com/prebid/prebid-server/v2@v2.18.0/hooks/empty_plan.go (about)

     1  package hooks
     2  
     3  import (
     4  	"github.com/prebid/prebid-server/v2/config"
     5  	"github.com/prebid/prebid-server/v2/hooks/hookstage"
     6  )
     7  
     8  // EmptyPlanBuilder implements the ExecutionPlanBuilder interface
     9  // and used as the stub when the hooks' functionality is disabled.
    10  type EmptyPlanBuilder struct{}
    11  
    12  func (e EmptyPlanBuilder) PlanForEntrypointStage(endpoint string) Plan[hookstage.Entrypoint] {
    13  	return nil
    14  }
    15  
    16  func (e EmptyPlanBuilder) PlanForRawAuctionStage(endpoint string, account *config.Account) Plan[hookstage.RawAuctionRequest] {
    17  	return nil
    18  }
    19  
    20  func (e EmptyPlanBuilder) PlanForProcessedAuctionStage(endpoint string, account *config.Account) Plan[hookstage.ProcessedAuctionRequest] {
    21  	return nil
    22  }
    23  
    24  func (e EmptyPlanBuilder) PlanForBidderRequestStage(endpoint string, account *config.Account) Plan[hookstage.BidderRequest] {
    25  	return nil
    26  }
    27  
    28  func (e EmptyPlanBuilder) PlanForRawBidderResponseStage(endpoint string, account *config.Account) Plan[hookstage.RawBidderResponse] {
    29  	return nil
    30  }
    31  
    32  func (e EmptyPlanBuilder) PlanForAllProcessedBidResponsesStage(endpoint string, account *config.Account) Plan[hookstage.AllProcessedBidResponses] {
    33  	return nil
    34  }
    35  
    36  func (e EmptyPlanBuilder) PlanForAuctionResponseStage(endpoint string, account *config.Account) Plan[hookstage.AuctionResponse] {
    37  	return nil
    38  }