billing_ce.go 505 B

123456789101112131415161718192021222324
  1. //go:build !ee
  2. // +build !ee
  3. package billing
  4. import (
  5. "net/http"
  6. "github.com/porter-dev/porter/api/server/handlers"
  7. "github.com/porter-dev/porter/api/server/shared"
  8. "github.com/porter-dev/porter/api/server/shared/config"
  9. )
  10. type BillingWebhookHandler struct {
  11. handlers.PorterHandlerReader
  12. handlers.Unavailable
  13. }
  14. func NewBillingWebhookHandler(
  15. config *config.Config,
  16. decoderValidator shared.RequestDecoderValidator,
  17. ) http.Handler {
  18. return handlers.NewUnavailable(config, "billing_webhook")
  19. }