Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlexMessage ¶
type PlexMessage struct { Event string `json:"event"` User bool `json:"user"` Owner bool `json:"owner"` Account struct { ID int `json:"id"` Thumb string `json:"thumb"` Title string `json:"title"` } `json:"Account"` Server struct { Title string `json:"title"` UUID string `json:"uuid"` } `json:"Server"` Player struct { Local bool `json:"local"` PublicAddress string `json:"publicAddress"` Title string `json:"title"` UUID string `json:"uuid"` } `json:"Player"` Metadata struct { LibrarySectionType string `json:"librarySectionType"` RatingKey string `json:"ratingKey"` Key string `json:"key"` ParentRatingKey string `json:"parentRatingKey"` GrandparentRatingKey string `json:"grandparentRatingKey"` GUID string `json:"guid"` ParentGUID string `json:"parentGuid"` GrandparentGUID string `json:"grandparentGuid"` LibrarySectionTitle string `json:"librarySectionTitle"` LibrarySectionID int `json:"librarySectionID"` LibrarySectionKey string `json:"librarySectionKey"` Type string `json:"type"` Title string `json:"title"` GrandparentKey string `json:"grandparentKey"` ParentKey string `json:"parentKey"` GrandparentTitle string `json:"grandparentTitle"` ParentTitle string `json:"parentTitle"` Summary string `json:"summary"` Index int `json:"index"` ParentIndex int `json:"parentIndex"` ViewOffset int `json:"viewOffset"` LastViewedAt int `json:"lastViewedAt"` Year int `json:"year"` Thumb string `json:"thumb"` Art string `json:"art"` ParentThumb string `json:"parentThumb"` GrandparentThumb string `json:"grandparentThumb"` GrandparentArt string `json:"grandparentArt"` OriginallyAvailableAt string `json:"originallyAvailableAt"` AddedAt int `json:"addedAt"` UpdatedAt int `json:"updatedAt"` } `json:"Metadata"` }
PlexMessage defines the message type passed from the Plex webhook
type SlackBlock ¶ added in v1.0.3
type SlackBlock struct { // Type defines the type of block: section / context / divider Type string `json:"type"` // Text defines the text to send with the section type Text *SlackText `json:"text,omitempty"` // Elements defines the elements to use with the context type Elements []SlackElement `json:"elements,omitempty"` }
SlackBlock defines a Slack block
type SlackElement ¶ added in v1.0.3
type SlackElement struct { Type string `json:"type,omitempty"` Text string `json:"text,omitempty"` }
SlackElement defines the element to use with a context type
type SlackRequestBody ¶ added in v1.0.3
type SlackRequestBody struct { Text string `json:"text,omitempty"` Blocks []SlackBlock `json:"blocks,omitempty"` }
SlackRequestBody defines the message type to pass to a Slack Webhook (to post to a channel)
Click to show internal directories.
Click to hide internal directories.