Documentation
¶
Index ¶
- Variables
- func Configure(l *goapp.Lifecycle, conf *config.Config)
- func ContainsSize(size uint, allowed []uint) bool
- func HandleImageReader(node *base.Node, v *vault.Vault, r io.Reader, logger *log.Logger) (int64, error)
- type ExifMeta
- type ExifWalker
- type Image
- type ImageDownloadListener
- type ImageHandler
- func (h *ImageHandler) GetDownloadData(node *base.Node) *base.DownloadData
- func (h *ImageHandler) GetStruct() (base.NodeData, base.NodeMeta)
- func (h *ImageHandler) PostInsert(node *base.Node, m base.NodeManager) error
- func (h *ImageHandler) PostUpdate(node *base.Node, m base.NodeManager) error
- func (h *ImageHandler) PreInsert(node *base.Node, m base.NodeManager) error
- func (h *ImageHandler) PreUpdate(node *base.Node, m base.NodeManager) error
- func (h *ImageHandler) StoreStream(node *base.Node, r io.Reader) (int64, error)
- type ImageMeta
- type MediaViewHandler
- type Youtube
- type YoutubeHandler
- func (h *YoutubeHandler) GetStruct() (base.NodeData, base.NodeMeta)
- func (h *YoutubeHandler) PostInsert(node *base.Node, m base.NodeManager) error
- func (h *YoutubeHandler) PostUpdate(node *base.Node, m base.NodeManager) error
- func (h *YoutubeHandler) PreInsert(node *base.Node, m base.NodeManager) error
- func (h *YoutubeHandler) PreUpdate(node *base.Node, m base.NodeManager) error
- type YoutubeListener
- type YoutubeMeta
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func ContainsSize ¶
Types ¶
type ExifWalker ¶
type ExifWalker struct {
Meta ExifMeta
}
type ImageDownloadListener ¶
type ImageDownloadListener struct { Vault *vault.Vault HttpClient base.HttpClient Logger *log.Logger }
func (*ImageDownloadListener) Handle ¶
func (l *ImageDownloadListener) Handle(notification *pq.Notification, m base.NodeManager) (int, error)
type ImageHandler ¶
func (*ImageHandler) GetDownloadData ¶
func (h *ImageHandler) GetDownloadData(node *base.Node) *base.DownloadData
func (*ImageHandler) PostInsert ¶
func (h *ImageHandler) PostInsert(node *base.Node, m base.NodeManager) error
func (*ImageHandler) PostUpdate ¶
func (h *ImageHandler) PostUpdate(node *base.Node, m base.NodeManager) error
func (*ImageHandler) PreInsert ¶
func (h *ImageHandler) PreInsert(node *base.Node, m base.NodeManager) error
func (*ImageHandler) PreUpdate ¶
func (h *ImageHandler) PreUpdate(node *base.Node, m base.NodeManager) error
func (*ImageHandler) StoreStream ¶
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 MediaViewHandler ¶
func (*MediaViewHandler) Execute ¶
func (m *MediaViewHandler) Execute(node *base.Node, request *base.ViewRequest, response *base.ViewResponse) error
func (*MediaViewHandler) Support ¶
func (m *MediaViewHandler) Support(node *base.Node, request *base.ViewRequest, response *base.ViewResponse) bool
type YoutubeHandler ¶
type YoutubeHandler struct { }
func (*YoutubeHandler) GetStruct ¶
func (h *YoutubeHandler) GetStruct() (base.NodeData, base.NodeMeta)
func (*YoutubeHandler) PostInsert ¶
func (h *YoutubeHandler) PostInsert(node *base.Node, m base.NodeManager) error
func (*YoutubeHandler) PostUpdate ¶
func (h *YoutubeHandler) PostUpdate(node *base.Node, m base.NodeManager) error
func (*YoutubeHandler) PreInsert ¶
func (h *YoutubeHandler) PreInsert(node *base.Node, m base.NodeManager) error
func (*YoutubeHandler) PreUpdate ¶
func (h *YoutubeHandler) PreUpdate(node *base.Node, m base.NodeManager) error
type YoutubeListener ¶
type YoutubeListener struct {
HttpClient base.HttpClient
}
func (*YoutubeListener) Handle ¶
func (l *YoutubeListener) Handle(notification *pq.Notification, m base.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.