Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DownloadEvent ¶
type DownloadEvent int
const ( DownloadStart DownloadEvent = iota DownloadProgress DownloadEnd DownloadError )
func (DownloadEvent) MarshalJSON ¶
func (do DownloadEvent) MarshalJSON() ([]byte, error)
func (DownloadEvent) String ¶
func (do DownloadEvent) String() string
type ImageDownloadMessage ¶
type ImageDownloadMessage struct { Event DownloadEvent `json:"event"` Metadata ImageMetadata `json:"metadata"` ContentLength units.MetricBytes `json:"content_length"` Downloaded units.MetricBytes `json:"downloaded"` Subreddit string `json:"subreddit"` PostURL string `json:"post_url"` PostID string `json:"post_id"` Error error `json:"error"` }
func (ImageDownloadMessage) MarshalJSON ¶
func (im ImageDownloadMessage) MarshalJSON() ([]byte, error)
Click to show internal directories.
Click to hide internal directories.