etl

package
v0.0.0-...-6bf7796 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewUserListRequestBuilder

func NewUserListRequestBuilder(aL *user.AnimeList, u *user.User) func() error

func NewUserListRequestWithBackoff

func NewUserListRequestWithBackoff(aL *user.AnimeList, u *user.User) error

func NewUserRequestBuilder

func NewUserRequestBuilder(u *user.User, uname string) func() error

func NewUserRequestWithBackoff

func NewUserRequestWithBackoff(u *user.User, uname string) error

Types

type AnimeRating

type AnimeRating struct {
	ID      int64   `json: "id"`
	Title   string  `json: "title"`
	Score   int64   `json: "user_score"`
	Watched float64 `json: "watched_per"`
}

type MALUsers

type MALUsers struct {
	Users []string `goquery:"div#content table tbody tr td table tbody tr td div:first-child > a,text"`
}

type RunnerProvider

type RunnerProvider struct {
	Bucket  *string
	Session *session.Session
	Quit    chan struct{}
	Cron    *time.Ticker
}

func NewRunner

func NewRunner(bucket *string, session *session.Session, cron *time.Ticker) *RunnerProvider

func (*RunnerProvider) Do

func (r *RunnerProvider) Do()

func (*RunnerProvider) GetJSONReviews

func (r *RunnerProvider) GetJSONReviews() []byte

func (*RunnerProvider) WriteToS3

func (r *RunnerProvider) WriteToS3(content []byte) error

type UserList

type UserList struct {
	UID      int64         `json:"uid"`
	Username string        `json: "username"`
	List     []AnimeRating `json: "list"`
}

Jump to

Keyboard shortcuts

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