Documentation
¶
Index ¶
- type ExifMeta
- type Image
- type ImageDownloadListener
- type ImageHandler
- func (h *ImageHandler) GetDownloadData(node *core.Node) *core.DownloadData
- func (h *ImageHandler) GetStruct() (core.NodeData, core.NodeMeta)
- func (h *ImageHandler) Load(data []byte, meta []byte, node *core.Node) error
- func (h *ImageHandler) PostInsert(node *core.Node, m core.NodeManager) error
- func (h *ImageHandler) PostUpdate(node *core.Node, m core.NodeManager) error
- func (h *ImageHandler) PreInsert(node *core.Node, m core.NodeManager) error
- func (h *ImageHandler) PreUpdate(node *core.Node, m core.NodeManager) error
- func (h *ImageHandler) StoreStream(node *core.Node, r io.Reader) (written int64, err error)
- func (h *ImageHandler) Validate(node *core.Node, m core.NodeManager, errors core.Errors)
- type ImageMeta
- type Youtube
- type YoutubeHandler
- func (h *YoutubeHandler) GetDownloadData(node *core.Node) *core.DownloadData
- func (h *YoutubeHandler) GetStruct() (core.NodeData, core.NodeMeta)
- func (h *YoutubeHandler) Load(data []byte, meta []byte, node *core.Node) error
- func (h *YoutubeHandler) PostInsert(node *core.Node, m core.NodeManager) error
- func (h *YoutubeHandler) PostUpdate(node *core.Node, m core.NodeManager) error
- func (h *YoutubeHandler) PreInsert(node *core.Node, m core.NodeManager) error
- func (h *YoutubeHandler) PreUpdate(node *core.Node, m core.NodeManager) error
- func (h *YoutubeHandler) StoreStream(node *core.Node, r io.Reader) (int64, error)
- func (h *YoutubeHandler) Validate(node *core.Node, m core.NodeManager, errors core.Errors)
- type YoutubeListener
- type YoutubeMeta
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageDownloadListener ¶
type ImageDownloadListener struct { Vault *vault.Vault HttpClient core.HttpClient }
func (*ImageDownloadListener) Handle ¶
func (l *ImageDownloadListener) Handle(notification *pq.Notification, m core.NodeManager) (int, error)
type ImageHandler ¶
func (*ImageHandler) GetDownloadData ¶
func (h *ImageHandler) GetDownloadData(node *core.Node) *core.DownloadData
func (*ImageHandler) PostInsert ¶
func (h *ImageHandler) PostInsert(node *core.Node, m core.NodeManager) error
func (*ImageHandler) PostUpdate ¶
func (h *ImageHandler) PostUpdate(node *core.Node, m core.NodeManager) error
func (*ImageHandler) PreInsert ¶
func (h *ImageHandler) PreInsert(node *core.Node, m core.NodeManager) error
func (*ImageHandler) PreUpdate ¶
func (h *ImageHandler) PreUpdate(node *core.Node, m core.NodeManager) error
func (*ImageHandler) StoreStream ¶
func (*ImageHandler) Validate ¶
func (h *ImageHandler) Validate(node *core.Node, m core.NodeManager, errors core.Errors)
type ImageMeta ¶
type ImageMeta struct { Width int `json:"width"` Height int `json:"height"` Size int `json:"size"` ContentType string `json:"content_type"` Length int `json:"length"` Exif ExifMeta `json:"exif"` Hash string `json:"hash"` SourceStatus int `json:"source_status"` SourceError string `json:"source_error"` }
type YoutubeHandler ¶
type YoutubeHandler struct { }
func (*YoutubeHandler) GetDownloadData ¶
func (h *YoutubeHandler) GetDownloadData(node *core.Node) *core.DownloadData
func (*YoutubeHandler) GetStruct ¶
func (h *YoutubeHandler) GetStruct() (core.NodeData, core.NodeMeta)
func (*YoutubeHandler) PostInsert ¶
func (h *YoutubeHandler) PostInsert(node *core.Node, m core.NodeManager) error
func (*YoutubeHandler) PostUpdate ¶
func (h *YoutubeHandler) PostUpdate(node *core.Node, m core.NodeManager) error
func (*YoutubeHandler) PreInsert ¶
func (h *YoutubeHandler) PreInsert(node *core.Node, m core.NodeManager) error
func (*YoutubeHandler) PreUpdate ¶
func (h *YoutubeHandler) PreUpdate(node *core.Node, m core.NodeManager) error
func (*YoutubeHandler) StoreStream ¶
func (*YoutubeHandler) Validate ¶
func (h *YoutubeHandler) Validate(node *core.Node, m core.NodeManager, errors core.Errors)
type YoutubeListener ¶
type YoutubeListener struct {
HttpClient core.HttpClient
}
func (*YoutubeListener) Handle ¶
func (l *YoutubeListener) Handle(notification *pq.Notification, m core.NodeManager) (int, error)
type YoutubeMeta ¶
type YoutubeMeta struct { Type string `json:"type"` Html string `json:"html"` Width int `json:"width"` Height int `json:"height"` Version string `json:"version"` Title string `json:"title"` ProviderName string `json:"provider_name"` AuthorName string `json:"author_name"` AuthorUrl string `json:"author_url"` ProviderUrl string `json:"provider_url"` ThumbnailUrl string `json:"thumbnail_url"` ThumbnailWidth int `json:"thumbnail_width"` ThumbnailHeight int `json:"thumbnail_height"` }
Click to show internal directories.
Click to hide internal directories.