patreonpremiumsource

package
v1.15.4 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: MIT Imports: 11 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) Name

func (p *Plugin) Name() string

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