patreon

package
v0.0.0-...-107fb91 Latest Latest
Warning

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

Go to latest
Published: Jun 1, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var BadLogin error = errors.New("Invalid or expired patreon auth token")

Functions

This section is empty.

Types

type PatreonSession

type PatreonSession struct {
	AccessToken  string
	RefreshToken string
	ExpiresAt    time.Time
	Scope        string
	TokenType    string
}

func (PatreonSession) MarshalJSON

func (p PatreonSession) MarshalJSON() ([]byte, error)

func (*PatreonSession) UnmarshalJSON

func (p *PatreonSession) UnmarshalJSON(j []byte) error

type PatreonUser

type PatreonUser struct {
	Id         int
	FullName   string
	CampaignId int
}

func GetUserInfo

func GetUserInfo(p *PatreonSession) (*PatreonUser, error)

type Tier

type Tier struct {
	Name              string
	ContributionCents int
}

type TierArray

type TierArray []Tier

func GetTitleAndTiers

func GetTitleAndTiers(p *PatreonSession) (string, TierArray, error)

Jump to

Keyboard shortcuts

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