Documentation ¶
Index ¶
- func DisableLog()
- func Repositories() []string
- func SetAccounts(options config.CommunityStatOptions)
- func Subreddits() []string
- func TwitterHandles() []string
- func UseLogger(logger slog.Logger)
- func YoutubeChannels() []string
- type ChartData
- type Collector
- type CommStat
- type DataStore
- type Github
- type Reddit
- type RedditResponse
- type Twitter
- type Youtube
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DisableLog ¶
func DisableLog()
DisableLog disables all library log output. Logging output is disabled by default until UseLogger is called.
func Repositories ¶
func Repositories() []string
func SetAccounts ¶
func SetAccounts(options config.CommunityStatOptions)
func Subreddits ¶
func Subreddits() []string
func TwitterHandles ¶
func TwitterHandles() []string
func YoutubeChannels ¶
func YoutubeChannels() []string
Types ¶
type Collector ¶
type Collector struct {
// contains filtered or unexported fields
}
func NewCommStatCollector ¶
func NewCommStatCollector(store DataStore, options *config.CommunityStatOptions) (*Collector, error)
type DataStore ¶
type DataStore interface { StoreRedditStat(context.Context, Reddit) error LastCommStatEntry() (time time.Time) StoreTwitterStat(ctx context.Context, twitter Twitter) error StoreYoutubeStat(ctx context.Context, youtube Youtube) error StoreGithubStat(ctx context.Context, github Github) error LastEntry(ctx context.Context, tableName string, receiver interface{}) error }
type RedditResponse ¶
Click to show internal directories.
Click to hide internal directories.