Documentation ¶
Index ¶
Constants ¶
View Source
const (
NumOfHTTPCalls = 3
)
Variables ¶
This section is empty.
Functions ¶
func ExpiresInToExpiry ¶
Types ¶
type JWTTransport ¶
type JWTTransport struct { AccessToken string Expiry time.Time Transport http.RoundTripper Config *config.Config // contains filtered or unexported fields }
func NewJWTTransport ¶
type RedditClient ¶
func NewRedditClient ¶
func NewRedditClient(conf *config.Config) *RedditClient
func (*RedditClient) GetSubredditUsers ¶
func (c *RedditClient) GetSubredditUsers(conf *config.Config) ([]PostData, []UserPostCount)
type RedditData ¶
type RedditData struct { After string `json:"after"` Children []RedditPost `json:"children"` Before *string `json:"before"` }
type RedditPost ¶
type RedditPost struct {
Data PostData `json:"data"`
}
type RedditPostResponse ¶
type RedditPostResponse struct {
Data RedditData `json:"data"`
}
type RedditToken ¶
type TokenClient ¶
type TokenClient struct {
// contains filtered or unexported fields
}
func NewTokenClient ¶
func NewTokenClient() *TokenClient
func (*TokenClient) GetToken ¶
func (tc *TokenClient) GetToken(conf *config.Config) (*RedditToken, error)
type UserPostCount ¶
Click to show internal directories.
Click to hide internal directories.