platform

package
v0.0.0-...-952e0dc Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2021 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Interface

type Interface interface {
	Fetch() error
}

Interface ...

type Twitter

type Twitter struct {
	// contains filtered or unexported fields
}

Twitter platform

func NewTwitter

func NewTwitter(logger *log.Logger, metricPrefix string, factory *promauto.Factory, screenName string, clientID string, clientSecret string, accessToken string, accessTokenSecret string) (Twitter, error)

NewTwitter create new instance of the Twitter user fetcher

func (Twitter) Fetch

func (p Twitter) Fetch() error

Fetch Format key with lavels

type YouTube

type YouTube struct {
	// contains filtered or unexported fields
}

YouTube platform

func NewYouTube

func NewYouTube(logger *log.Logger, metricPrefix string, factory *promauto.Factory, channelID string, clientID string, clientSecret string, accessToken string, refreshToken string) (YouTube, error)

NewYouTube create new instance of the YouTube user fetcher

func (YouTube) Fetch

func (p YouTube) Fetch() error

Fetch Format key with lavels

Jump to

Keyboard shortcuts

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