Documentation ¶
Index ¶
Constants ¶
View Source
const ( NewEntriesEventType = "new_entries" SaveEntryEventType = "save_entry" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func (*Client) SendNewEntriesWebhookEvent ¶
type WebhookCategory ¶ added in v2.1.2
type WebhookEntry ¶
type WebhookEntry struct { ID int64 `json:"id"` UserID int64 `json:"user_id"` FeedID int64 `json:"feed_id"` Status string `json:"status"` Hash string `json:"hash"` Title string `json:"title"` URL string `json:"url"` CommentsURL string `json:"comments_url"` Date time.Time `json:"published_at"` CreatedAt time.Time `json:"created_at"` ChangedAt time.Time `json:"changed_at"` Content string `json:"content"` Author string `json:"author"` Starred bool `json:"starred"` ReadingTime int `json:"reading_time"` Enclosures model.EnclosureList `json:"enclosures"` Tags []string `json:"tags"` Feed *WebhookFeed `json:"feed,omitempty"` }
type WebhookFeed ¶
type WebhookFeed struct { ID int64 `json:"id"` UserID int64 `json:"user_id"` CategoryID int64 `json:"category_id"` Category *WebhookCategory `json:"category,omitempty"` FeedURL string `json:"feed_url"` SiteURL string `json:"site_url"` Title string `json:"title"` CheckedAt time.Time `json:"checked_at"` }
type WebhookNewEntriesEvent ¶
type WebhookNewEntriesEvent struct { EventType string `json:"event_type"` Feed *WebhookFeed `json:"feed"` Entries []*WebhookEntry `json:"entries"` }
type WebhookSaveEntryEvent ¶
type WebhookSaveEntryEvent struct { EventType string `json:"event_type"` Entry *WebhookEntry `json:"entry"` }
Click to show internal directories.
Click to hide internal directories.