Documentation
¶
Index ¶
- type Config
- type Server
- func (s *Server) CancelSubscription(w http.ResponseWriter, r *http.Request, subscriptionId api.ULID)
- func (s *Server) ChangeSubscription(w http.ResponseWriter, r *http.Request, subscriptionId api.ULID)
- func (s *Server) CreateBillingProfile(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateCustomer(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateCustomerStripeCheckoutSession(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) CreateCustomerStripePortalSession(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) CreateMeter(w http.ResponseWriter, r *http.Request)
- func (s *Server) CreateSubscription(w http.ResponseWriter, r *http.Request)
- func (s *Server) DeleteBillingProfile(w http.ResponseWriter, r *http.Request, id api.ULID)
- func (s *Server) DeleteCustomer(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) DeleteMeter(w http.ResponseWriter, r *http.Request, meterId api.ULID)
- func (s *Server) GetApp(w http.ResponseWriter, r *http.Request, appId api.ULID)
- func (s *Server) GetBillingProfile(w http.ResponseWriter, r *http.Request, id api.ULID)
- func (s *Server) GetCustomer(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) GetCustomerBilling(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) GetMeter(w http.ResponseWriter, r *http.Request, meterId api.ULID)
- func (s *Server) GetSubscription(w http.ResponseWriter, r *http.Request, subscriptionId api.ULID)
- func (s *Server) IngestMeteringEvents(w http.ResponseWriter, r *http.Request)
- func (s *Server) ListApps(w http.ResponseWriter, r *http.Request, params api.ListAppsParams)
- func (s *Server) ListBillingProfiles(w http.ResponseWriter, r *http.Request, params api.ListBillingProfilesParams)
- func (s *Server) ListCustomerEntitlementAccess(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) ListCustomers(w http.ResponseWriter, r *http.Request, params api.ListCustomersParams)
- func (s *Server) ListMeters(w http.ResponseWriter, r *http.Request, params api.ListMetersParams)
- func (s *Server) ListSubscriptions(w http.ResponseWriter, r *http.Request, params api.ListSubscriptionsParams)
- func (s *Server) RegisterRoutes(r chi.Router) error
- func (s *Server) UnscheduleCancelation(w http.ResponseWriter, r *http.Request, subscriptionId api.ULID)
- func (s *Server) UpdateBillingProfile(w http.ResponseWriter, r *http.Request, id api.ULID)
- func (s *Server) UpdateCustomerBilling(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) UpdateCustomerBillingAppData(w http.ResponseWriter, r *http.Request, customerId api.ULID)
- func (s *Server) UpsertCustomer(w http.ResponseWriter, r *http.Request, customerId api.ULID)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
BaseURL string
NamespaceDecoder namespacedriver.NamespaceDecoder
ErrorHandler errorsx.Handler
Middlewares []server.MiddlewareFunc
PostAuthMiddlewares []server.MiddlewareFunc
// services
AppService app.Service
BillingService billing.Service
MeterService meter.ManageService
IngestService ingest.Service
CustomerService customer.Service
EntitlementService entitlement.Service
PlanService plan.Service
PlanSubscriptionService plansubscription.PlanSubscriptionService
StripeService appstripe.Service
SubscriptionService subscription.Service
}
type Server ¶
type Server struct {
*Config
// contains filtered or unexported fields
}
func (*Server) CancelSubscription ¶
func (*Server) ChangeSubscription ¶
func (*Server) CreateBillingProfile ¶
func (s *Server) CreateBillingProfile(w http.ResponseWriter, r *http.Request)
func (*Server) CreateCustomer ¶
func (s *Server) CreateCustomer(w http.ResponseWriter, r *http.Request)
func (*Server) CreateCustomerStripeCheckoutSession ¶
func (*Server) CreateCustomerStripePortalSession ¶
func (*Server) CreateMeter ¶
func (s *Server) CreateMeter(w http.ResponseWriter, r *http.Request)
func (*Server) CreateSubscription ¶
func (s *Server) CreateSubscription(w http.ResponseWriter, r *http.Request)
func (*Server) DeleteBillingProfile ¶
func (*Server) DeleteCustomer ¶
func (*Server) DeleteMeter ¶
func (*Server) GetBillingProfile ¶
func (*Server) GetCustomer ¶
func (*Server) GetCustomerBilling ¶
func (*Server) GetSubscription ¶
func (*Server) IngestMeteringEvents ¶
func (s *Server) IngestMeteringEvents(w http.ResponseWriter, r *http.Request)
func (*Server) ListApps ¶
func (s *Server) ListApps(w http.ResponseWriter, r *http.Request, params api.ListAppsParams)
func (*Server) ListBillingProfiles ¶
func (s *Server) ListBillingProfiles(w http.ResponseWriter, r *http.Request, params api.ListBillingProfilesParams)
func (*Server) ListCustomerEntitlementAccess ¶
func (*Server) ListCustomers ¶
func (s *Server) ListCustomers(w http.ResponseWriter, r *http.Request, params api.ListCustomersParams)
func (*Server) ListMeters ¶
func (s *Server) ListMeters(w http.ResponseWriter, r *http.Request, params api.ListMetersParams)
func (*Server) ListSubscriptions ¶
func (s *Server) ListSubscriptions(w http.ResponseWriter, r *http.Request, params api.ListSubscriptionsParams)
func (*Server) UnscheduleCancelation ¶
func (*Server) UpdateBillingProfile ¶
func (*Server) UpdateCustomerBilling ¶
func (*Server) UpdateCustomerBillingAppData ¶
func (*Server) UpsertCustomer ¶
Click to show internal directories.
Click to hide internal directories.