patreonpremiumsource

package
v1.24.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 7, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalcSlotsForPledge

func CalcSlotsForPledge(cents int) (slots int)

func RegisterPlugin

func RegisterPlugin()

func RunPoller

func RunPoller()

func UpdatePremiumSlots

func UpdatePremiumSlots(ctx context.Context) error

Types

type Plugin

type Plugin struct{}

Since we keep the patrons loaded on the webserver, we also do the updating of the patreon premium slots on the webserver in the future this should be cleaned up (maybe keep patrons in redis)

func (*Plugin) InitWeb

func (p *Plugin) InitWeb()

func (*Plugin) PluginInfo

func (p *Plugin) PluginInfo() *common.PluginInfo

type PremiumSource

type PremiumSource struct{}

func (*PremiumSource) Init

func (ps *PremiumSource) Init()

func (*PremiumSource) Names

func (ps *PremiumSource) Names() (human string, idname string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL