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 New ¶
func New(config *common.Config, plex *apps.PlexConfig) *Action
New configures the library.
func (*Action) GetMetaSnap ¶ added in v0.7.0
GetMetaSnap grabs some basic system info: cpu, memory, username. Gets added to Plex sessions and webhook payloads.
func (*Action) GetSessions ¶
GetSessions returns the plex sessions up to 1 minute old. This uses a channel so concurrent requests are avoided.
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.