Documentation
¶
Index ¶
- Variables
- func Init()
- type Author
- type FxTwitterApiResp
- type Media
- type MediaItem
- type Tweet
- type Twitter
- func (t *Twitter) FetchNewArtworks(ctx context.Context, limit int) ([]*dto.FetchedArtwork, error)
- func (t *Twitter) GetArtworkInfo(ctx context.Context, sourceURL string) (*dto.FetchedArtwork, error)
- func (t *Twitter) MatchesSourceURL(text string) (string, bool)
- func (t *Twitter) PrettyFileName(artwork shared.ArtworkLike, picture shared.PictureLike) string
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type FxTwitterApiResp ¶
type FxTwitterApiResp struct {
Code int `json:"code"`
Message string `json:"message"`
Tweet *Tweet `json:"tweet"`
}
func (*FxTwitterApiResp) ToArtwork ¶
func (resp *FxTwitterApiResp) ToArtwork() (*dto.FetchedArtwork, error)
type Twitter ¶
type Twitter struct {
// contains filtered or unexported fields
}
func (*Twitter) FetchNewArtworks ¶
func (*Twitter) GetArtworkInfo ¶
func (*Twitter) PrettyFileName ¶
func (t *Twitter) PrettyFileName(artwork shared.ArtworkLike, picture shared.PictureLike) string
PrettyFileName implements source.ArtworkSource.
Click to show internal directories.
Click to hide internal directories.