Documentation ¶
Index ¶
- Variables
- func ConfigureAdminAPIRoute(route httproute.Route) httproute.Route
- func ConfigureGraphQLRoute(route httproute.Route) httproute.Route
- func ConfigureStripeWebhookRoute(route httproute.Route) httproute.Route
- func ConfigureSystemConfigRoute(route httproute.Route) httproute.Route
- type AdminAPIAuthzService
- type AdminAPIHandler
- type AdminAPILogger
- type AdminAPIService
- type GraphQLHandler
- type ResourceManager
- type StaticAssetsHandler
- type StripeService
- type StripeWebhookHandler
- type StripeWebhookLogger
- type SubscriptionService
- type SystemConfigHandler
- type SystemConfigProvider
Constants ¶
This section is empty.
Variables ¶
View Source
var DependencySet = wire.NewSet( wire.Struct(new(GraphQLHandler), "*"), wire.Struct(new(SystemConfigHandler), "*"), NewAdminAPILogger, wire.Struct(new(AdminAPIHandler), "*"), wire.Struct(new(StaticAssetsHandler), "*"), NewStripeWebhookLogger, wire.Struct(new(StripeWebhookHandler), "*"), )
Functions ¶
Types ¶
type AdminAPIAuthzService ¶
type AdminAPIHandler ¶
type AdminAPIHandler struct { Database *globaldb.Handle Authz AdminAPIAuthzService AdminAPI AdminAPIService Logger AdminAPILogger }
func (*AdminAPIHandler) ServeHTTP ¶
func (h *AdminAPIHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type AdminAPILogger ¶
func NewAdminAPILogger ¶
func NewAdminAPILogger(lf *log.Factory) AdminAPILogger
type AdminAPIService ¶
type GraphQLHandler ¶
type GraphQLHandler struct { DevMode config.DevMode GraphQLContext *graphql.Context Database *globaldb.Handle AuditDatabase *auditdb.ReadHandle }
func (*GraphQLHandler) ServeHTTP ¶
func (h *GraphQLHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type ResourceManager ¶
type StaticAssetsHandler ¶
type StaticAssetsHandler struct {
Resources ResourceManager
}
func (*StaticAssetsHandler) Open ¶
func (h *StaticAssetsHandler) Open(name string) (http.File, error)
func (*StaticAssetsHandler) ServeHTTP ¶
func (h *StaticAssetsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StripeService ¶
type StripeWebhookHandler ¶
type StripeWebhookHandler struct { StripeService StripeService Logger StripeWebhookLogger Subscriptions SubscriptionService Database *globaldb.Handle }
func (*StripeWebhookHandler) ServeHTTP ¶
func (h *StripeWebhookHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type StripeWebhookLogger ¶
func NewStripeWebhookLogger ¶
func NewStripeWebhookLogger(lf *log.Factory) StripeWebhookLogger
type SubscriptionService ¶
type SubscriptionService interface { GetSubscription(appID string) (*model.Subscription, error) MarkCheckoutCompleted(appID string, stripCheckoutSessionID string, customerID string) error MarkCheckoutSubscribed(appID string, customerID string) error MarkCheckoutCancelled(appID string, customerID string) error MarkCheckoutExpired(appID string, customerID string) error UpsertSubscription(appID string, stripeSubscriptionID string, stripeCustomerID string) (*model.Subscription, error) ArchiveSubscription(sub *model.Subscription) error UpdateAppPlan(appID string, planName string) error UpdateAppPlanToDefault(appID string) error }
type SystemConfigHandler ¶
type SystemConfigHandler struct { SystemConfig SystemConfigProvider FilesystemCache *httputil.FilesystemCache }
func (*SystemConfigHandler) ServeHTTP ¶
func (h *SystemConfigHandler) ServeHTTP(w http.ResponseWriter, r *http.Request)
type SystemConfigProvider ¶
type SystemConfigProvider interface {
SystemConfig() (*model.SystemConfig, error)
}
Click to show internal directories.
Click to hide internal directories.