Documentation ¶
Index ¶
- Variables
- func Config(path string) string
- type ConvertError
- type CustomError
- type DownloadError
- type Sticker
- type UserStorage
- func (u *UserStorage) ConvertStickers() error
- func (u *UserStorage) MakeDir(sub string)
- func (u *UserStorage) Remove(sub string)
- func (u *UserStorage) RootPath() string
- func (u *UserStorage) SaveSingleSticker(url string) ([]string, error)
- func (u *UserStorage) SaveSticker(url string) error
- func (u *UserStorage) SaveStickers(urlList []string) error
- func (u *UserStorage) SubPath(sub string) string
- func (u *UserStorage) Zip() ([]string, error)
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type ConvertError ¶
func NewConvertError ¶
func NewConvertError(op, src, dst string, err error) *ConvertError
func (*ConvertError) Error ¶
func (e *ConvertError) Error() string
func (*ConvertError) MessageID ¶
func (e *ConvertError) MessageID() string
func (*ConvertError) TemplateDataText ¶
func (e *ConvertError) TemplateDataText() string
type CustomError ¶
type DownloadError ¶
func NewDownloadError ¶
func NewDownloadError(url string, StatusCode int, err error) *DownloadError
func (*DownloadError) Error ¶
func (e *DownloadError) Error() string
func (*DownloadError) MessageID ¶
func (e *DownloadError) MessageID() string
func (*DownloadError) TemplateDataText ¶
func (e *DownloadError) TemplateDataText() string
type Sticker ¶
type Sticker struct {
// contains filtered or unexported fields
}
func NewStickerFromFilePath ¶
func NewStickerFromURL ¶
func (*Sticker) ReplaceExt ¶
type UserStorage ¶
type UserStorage struct {
// contains filtered or unexported fields
}
func NewUserStorage ¶
func NewUserStorage(userID int64, formats []string) *UserStorage
func (*UserStorage) ConvertStickers ¶
func (u *UserStorage) ConvertStickers() error
func (*UserStorage) MakeDir ¶
func (u *UserStorage) MakeDir(sub string)
func (*UserStorage) Remove ¶
func (u *UserStorage) Remove(sub string)
func (*UserStorage) RootPath ¶
func (u *UserStorage) RootPath() string
func (*UserStorage) SaveSingleSticker ¶
func (u *UserStorage) SaveSingleSticker(url string) ([]string, error)
func (*UserStorage) SaveSticker ¶
func (u *UserStorage) SaveSticker(url string) error
func (*UserStorage) SaveStickers ¶
func (u *UserStorage) SaveStickers(urlList []string) error
func (*UserStorage) SubPath ¶
func (u *UserStorage) SubPath(sub string) string
func (*UserStorage) Zip ¶
func (u *UserStorage) Zip() ([]string, error)
Click to show internal directories.
Click to hide internal directories.