Documentation ¶
Index ¶
- type PremiumManager
- func (m *PremiumManager) GetEntitledUserIDs(ctx context.Context) ([]string, error)
- func (m *PremiumManager) GetPlanByID(id string) *model.Plan
- func (m *PremiumManager) GetPlanBySKUID(skuID string) *model.Plan
- func (m *PremiumManager) GetPlanFeaturesForGuild(ctx context.Context, guildID string) (model.PlanFeatures, error)
- func (m *PremiumManager) GetPlanFeaturesForUser(ctx context.Context, userID string) (model.PlanFeatures, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PremiumManager ¶
type PremiumManager struct {
// contains filtered or unexported fields
}
func New ¶
func New(pg *postgres.PostgresStore, bot *bot.Bot) *PremiumManager
func (*PremiumManager) GetEntitledUserIDs ¶
func (m *PremiumManager) GetEntitledUserIDs(ctx context.Context) ([]string, error)
func (*PremiumManager) GetPlanByID ¶
func (m *PremiumManager) GetPlanByID(id string) *model.Plan
func (*PremiumManager) GetPlanBySKUID ¶
func (m *PremiumManager) GetPlanBySKUID(skuID string) *model.Plan
func (*PremiumManager) GetPlanFeaturesForGuild ¶
func (m *PremiumManager) GetPlanFeaturesForGuild(ctx context.Context, guildID string) (model.PlanFeatures, error)
func (*PremiumManager) GetPlanFeaturesForUser ¶
func (m *PremiumManager) GetPlanFeaturesForUser(ctx context.Context, userID string) (model.PlanFeatures, error)
Click to show internal directories.
Click to hide internal directories.