Documentation ¶
Index ¶
Constants ¶
View Source
const TrigPlexSessions common.TriggerName = "Gathering and sending Plex Sessions."
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Action ¶
type Action struct {
// contains filtered or unexported fields
}
Action contains the exported methods for this package.
func (*Action) GetSessions ¶
GetSessions returns the plex sessions. This uses a channel so concurrent requests are avoided. Passing wait=true makes sure the results are current. Waits up to 10 seconds before requesting. Passing wait=false will allow for sessions up to 10 seconds old. This may return faster.
func (*Action) SendWebhook ¶
func (a *Action) SendWebhook(hook *plex.IncomingWebhook)
SendWebhook is called in a go routine after a plex media.play webhook is received.
Click to show internal directories.
Click to hide internal directories.