billing_ce.go 798 B

123456789101112131415161718192021222324252627282930313233343536
  1. // +build !ee
  2. package billing
  3. import (
  4. "net/http"
  5. "github.com/porter-dev/porter/api/server/handlers"
  6. "github.com/porter-dev/porter/api/server/shared"
  7. "github.com/porter-dev/porter/api/server/shared/config"
  8. )
  9. type BillingGetTokenHandler struct {
  10. handlers.PorterHandlerReader
  11. handlers.Unavailable
  12. }
  13. func NewBillingGetTokenHandler(
  14. config *config.Config,
  15. decoderValidator shared.RequestDecoderValidator,
  16. writer shared.ResultWriter,
  17. ) http.Handler {
  18. return handlers.NewUnavailable(config, "billing_get_token")
  19. }
  20. type BillingWebhookHandler struct {
  21. handlers.PorterHandlerReader
  22. handlers.Unavailable
  23. }
  24. func NewBillingWebhookHandler(
  25. config *config.Config,
  26. decoderValidator shared.RequestDecoderValidator,
  27. ) http.Handler {
  28. return handlers.NewUnavailable(config, "billing_webhook")
  29. }