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 ¶
func GetUserInfo ¶
func GetUserInfo(p *PatreonSession) (*PatreonUser, error)
type TierArray ¶
type TierArray []Tier
func GetTitleAndTiers ¶
func GetTitleAndTiers(p *PatreonSession) (string, TierArray, error)
Click to show internal directories.
Click to hide internal directories.