Documentation ¶
Index ¶
Constants ¶
View Source
const MAX_IMG_SIZE = 10 * 1048576
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ImageFetcher ¶
type ImageFetcher struct { UploadMethod Original bool }
func (ImageFetcher) FetchImage ¶
func (fetcher ImageFetcher) FetchImage(source ImageSource) (tb.File, error)
type ImageSource ¶
type InlineImageFetcher ¶
type InlineImageFetcher struct { InlineImageSource Original bool }
func (InlineImageFetcher) GetImageUrl ¶
func (fetcher InlineImageFetcher) GetImageUrl(source ImageSource) (string, error)
type InlineImageSource ¶
type ProxiedURL ¶
type ProxiedURL struct {
ProxyHost string
}
func (ProxiedURL) TransformURL ¶
func (method ProxiedURL) TransformURL(source string) (string, error)
Click to show internal directories.
Click to hide internal directories.