Documentation
¶
Index ¶
- type Attributes
- type Client
- func (c *Client) DoRefresh(ctx context.Context) (Tokens, error)
- func (c *Client) FetchPage(ctx context.Context, url string) (PledgeResponse, error)
- func (c *Client) FetchPageWithTimeout(ctx context.Context, timeout time.Duration, url string) (PledgeResponse, error)
- func (c *Client) FetchPledges(ctx context.Context) (map[string]Patron, error)
- type Member
- type Patron
- type PatronMetadata
- type PledgeResponse
- type RefreshResponse
- type Tier
- type Tokens
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attributes ¶
type Client ¶
type Client struct {
Tokens Tokens
// contains filtered or unexported fields
}
func (*Client) FetchPageWithTimeout ¶
type Member ¶
type Member struct {
Attributes Attributes `json:"attributes"`
Relationships struct {
User struct {
Data struct {
Id uint64 `json:"id,string"`
} `json:"data"`
} `json:"user"`
CurrentlyEntitledTiers struct {
Data []struct {
TierId uint64 `json:"id,string"`
} `json:"data"`
} `json:"currently_entitled_tiers"`
} `json:"relationships"`
}
type PatronMetadata ¶
type PledgeResponse ¶
type PledgeResponse struct {
Data []Member `json:"data"`
Included []PatronMetadata `json:"included"`
Links *struct {
First string `json:"first"`
Next *string `json:"next"`
} `json:"links"`
}
type RefreshResponse ¶
Click to show internal directories.
Click to hide internal directories.