billing_ee.go 842 B

12345678910111213141516171819202122232425262728293031323334
  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. var NewBillingAddProjectHandler func(
  19. config *config.Config,
  20. decoderValidator shared.RequestDecoderValidator,
  21. ) http.Handler
  22. func init() {
  23. NewBillingGetTokenHandler = billing.NewBillingGetTokenHandler
  24. NewBillingWebhookHandler = billing.NewBillingWebhookHandler
  25. NewBillingAddProjectHandler = billing.NewBillingAddProjectHandler
  26. }