Documentation
¶
Index ¶
- func Attach(mux goahttp.Muxer, service *Service)
- type Service
- func (s *Service) APIKeyAuth(ctx context.Context, key string, schema *security.APIKeyScheme) (context.Context, error)
- func (s *Service) CreateCheckout(ctx context.Context, payload *gen.CreateCheckoutPayload) (res string, err error)
- func (s *Service) CreateCustomerSession(ctx context.Context, payload *gen.CreateCustomerSessionPayload) (res string, err error)
- func (s *Service) GetPeriodUsage(ctx context.Context, payload *gen.GetPeriodUsagePayload) (res *gen.PeriodUsage, err error)
- func (s *Service) GetUsageTiers(ctx context.Context) (*gen.UsageTiers, error)
- func (s *Service) HandlePolarWebhook(w http.ResponseWriter, r *http.Request) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewService ¶
func NewService(logger *slog.Logger, db *pgxpool.Pool, sessions *sessions.Manager, billingRepo billing.Repository, serverURL *url.URL, posthogClient *posthog.Posthog, openRouter openrouter.Provisioner) *Service
func (*Service) APIKeyAuth ¶
func (*Service) CreateCheckout ¶
func (*Service) CreateCustomerSession ¶
func (*Service) GetPeriodUsage ¶
func (s *Service) GetPeriodUsage(ctx context.Context, payload *gen.GetPeriodUsagePayload) (res *gen.PeriodUsage, err error)
func (*Service) GetUsageTiers ¶
func (*Service) HandlePolarWebhook ¶
Click to show internal directories.
Click to hide internal directories.