patreonpremiumsource

package
v1.20.6 Latest Latest
Warning

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

Go to latest
Published: Sep 3, 2019 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 added in v1.17.0

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