activitytracker

package
v0.0.0-...-a582ea1 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2026 License: MIT Imports: 14 Imported by: 0

Documentation

Overview

Package activitytracker provides functionality to track user watch activity across different platforms.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

Client represents a client to interact with external services

func New

func New(traktClient *trakt.Client, netflixClient *netflix.Client, slackClient *slack.Client) *Client

New returns a new Client

func (*Client) MarkAsWatched

func (c *Client) MarkAsWatched(ctx context.Context)

MarkAsWatched mark as watched all the provided media

func (*Client) Run

func (c *Client) Run(ctx context.Context) error

Run fetches the viewing history from Netflix and marks it as watched on Trakt

func (*Client) UpdateHistory

func (c *Client) UpdateHistory(ctx context.Context) error

UpdateHistory fetches the viewing history from Netflix and updates the local history.

Jump to

Keyboard shortcuts

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