notifier

package
v0.0.0-...-d357feb Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2020 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetClient

func GetClient(config *oauth2.Config) *http.Client

GetClient retrieve a token, saves the token, then returns the generated client.

func GetConfig

func GetConfig(b []byte) *oauth2.Config

GetConfig return config.

func GetCredentials

func GetCredentials() []byte

GetCredentials return json.

Types

type Gmail

type Gmail struct {
	CollectChat func(vid string)
}

Gmail struct.

func (*Gmail) PollingStart

func (n *Gmail) PollingStart(wg *sync.WaitGroup)

PollingStart polling gmail.

type Notifier

type Notifier interface {
	PollingStart(*sync.WaitGroup)
}

Notifier is interface

type YoutubeHTML

type YoutubeHTML struct {
	CollectChat func(vid string)
}

YoutubeHTML struct.

func (*YoutubeHTML) PollingStart

func (n *YoutubeHTML) PollingStart(wg *sync.WaitGroup)

PollingStart polling gmail.

Jump to

Keyboard shortcuts

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