billing_ee.go 647 B

12345678910111213141516171819202122232425262728
  1. // +build ee
  2. package billing
  3. import (
  4. "net/http"
  5. "github.com/porter-dev/porter/api/server/shared"
  6. "github.com/porter-dev/porter/api/server/shared/config"
  7. "github.com/porter-dev/porter/ee/api/server/handlers/billing"
  8. )
  9. var NewBillingGetTokenHandler func(
  10. config *config.Config,
  11. decoderValidator shared.RequestDecoderValidator,
  12. writer shared.ResultWriter,
  13. ) http.Handler
  14. var NewBillingWebhookHandler func(
  15. config *config.Config,
  16. decoderValidator shared.RequestDecoderValidator,
  17. ) http.Handler
  18. func init() {
  19. NewBillingGetTokenHandler = billing.NewBillingGetTokenHandler
  20. NewBillingWebhookHandler = billing.NewBillingWebhookHandler
  21. }