notification

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: May 18, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MediaServer

type MediaServer int
const (
	Emby MediaServer = iota
)

type Metadata

type Metadata struct {
	Server   MediaServer
	Username string
	ImdbId   string
	Time     time.Time
}

type PlaybackNotification

type PlaybackNotification struct {
	Metadata
	Playing  bool
	Position time.Duration
	Runtime  time.Duration
}

type Processor

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

func NewProcessor

func NewProcessor(callback func(letterboxd.Event)) Processor

func (*Processor) ProcessPlaybackNotification

func (p *Processor) ProcessPlaybackNotification(notification PlaybackNotification)

func (*Processor) ProcessWatchedNotification

func (p *Processor) ProcessWatchedNotification(notification WatchedNotification)

type WatchedNotification

type WatchedNotification struct {
	Metadata
	Watched bool
	Runtime time.Duration
}

Jump to

Keyboard shortcuts

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