account_manager

package
v0.2.29 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Login           string `envconfig:"LOGIN" required:"true"`
	Password        string `envconfig:"PASSWORD" required:"true"`
	Confirmation    string `envconfig:"CONFIRMATION"`
	CookiesFilename string `envconfig:"COOKIES_FILENAME"`
}

func GetConfig

func GetConfig() Config

type Manager

type Manager interface {
	AddAccount(ctx context.Context, config Config) error
	AuthScrapper(ctx context.Context, account common.TwitterAccount, scraper *twitterscraper.Scraper) error
	SearchUnAuthAccounts(ctx context.Context) ([]common.TwitterAccount, error)
}

func NewManager

func NewManager(repo repo, logger log.Logger) Manager

Jump to

Keyboard shortcuts

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