Documentation
¶
Index ¶
- type ArtworkEventItem
- type ArtworkSearchDocument
- type ArtworkSearchResult
- type FetchedArtist
- type FetchedArtwork
- func (f *FetchedArtwork) GetArtist() shared.ArtistLike
- func (f *FetchedArtwork) GetDescription() string
- func (f *FetchedArtwork) GetID() string
- func (f *FetchedArtwork) GetPictures() []shared.PictureLike
- func (f *FetchedArtwork) GetR18() bool
- func (f *FetchedArtwork) GetSourceURL() string
- func (f *FetchedArtwork) GetTags() []string
- func (f *FetchedArtwork) GetTitle() string
- func (f *FetchedArtwork) GetType() shared.SourceType
- type FetchedPicture
- func (f *FetchedPicture) GetIndex() uint
- func (f *FetchedPicture) GetOriginal() string
- func (f *FetchedPicture) GetSize() (width uint, height uint)
- func (f *FetchedPicture) GetStorageInfo() shared.StorageInfo
- func (f *FetchedPicture) GetTelegramInfo() shared.TelegramInfo
- func (f *FetchedPicture) GetThumbnail() string
- func (f *FetchedPicture) IsHide() bool
- type FetchedUgoiraMeta
- type PictureEventItem
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ArtworkEventItem ¶
type ArtworkEventItem struct {
ID objectuuid.ObjectUUID `json:"id"`
Title string `json:"title"`
Description string `json:"description"`
R18 bool `json:"r18"`
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
SourceType shared.SourceType `json:"source_type"`
SourceURL string `json:"source_url"`
ArtistID objectuuid.ObjectUUID `json:"artist_id"`
ArtistName string `json:"artist_name"`
ArtistUsername string `json:"artist_username"`
ArtistUID string `json:"artist_uid"`
Tags []string `json:"tags"`
Pictures []PictureEventItem `json:"pictures"`
}
type ArtworkSearchDocument ¶
type ArtworkSearchResult ¶
type ArtworkSearchResult struct {
IDs []objectuuid.ObjectUUID `json:"ids"`
}
type FetchedArtist ¶
type FetchedArtist struct {
Name string `json:"name"`
Type shared.SourceType `json:"type"`
UID string `json:"uid"`
Username string `json:"username"`
}
func (*FetchedArtist) GetName ¶
func (f *FetchedArtist) GetName() string
GetName implements shared.ArtistLike.
func (*FetchedArtist) GetUID ¶
func (f *FetchedArtist) GetUID() string
GetUID implements shared.ArtistLike.
func (*FetchedArtist) GetUserName ¶
func (f *FetchedArtist) GetUserName() string
GetUserName implements shared.ArtistLike.
type FetchedArtwork ¶
type FetchedArtwork struct {
Title string `json:"title"`
Description string `json:"description"`
R18 bool `json:"r18"`
SourceType shared.SourceType `json:"source_type"`
SourceURL string `json:"source_url"`
Artist *FetchedArtist `json:"artist"`
Tags []string `json:"tags"`
Pictures []*FetchedPicture `json:"pictures"`
UgoiraMetas []*FetchedUgoiraMeta `json:"ugoira_metas,omitempty"`
}
func (*FetchedArtwork) GetArtist ¶
func (f *FetchedArtwork) GetArtist() shared.ArtistLike
GetArtist implements shared.ArtworkLike.
func (*FetchedArtwork) GetDescription ¶
func (f *FetchedArtwork) GetDescription() string
GetDescription implements shared.ArtworkLike.
func (*FetchedArtwork) GetID ¶
func (f *FetchedArtwork) GetID() string
func (*FetchedArtwork) GetPictures ¶
func (f *FetchedArtwork) GetPictures() []shared.PictureLike
GetPictures implements shared.ArtworkLike.
func (*FetchedArtwork) GetR18 ¶
func (f *FetchedArtwork) GetR18() bool
GetR18 implements shared.ArtworkLike.
func (*FetchedArtwork) GetSourceURL ¶
func (f *FetchedArtwork) GetSourceURL() string
GetSourceURL implements shared.ArtworkLike.
func (*FetchedArtwork) GetTags ¶
func (f *FetchedArtwork) GetTags() []string
GetTags implements shared.ArtworkLike.
func (*FetchedArtwork) GetTitle ¶
func (f *FetchedArtwork) GetTitle() string
GetTitle implements shared.ArtworkLike.
func (*FetchedArtwork) GetType ¶
func (f *FetchedArtwork) GetType() shared.SourceType
GetType implements shared.ArtworkLike.
type FetchedPicture ¶
type FetchedPicture struct {
Index uint `json:"index"`
Thumbnail string `json:"thumbnail"`
Original string `json:"original"`
Width uint `json:"width"`
Height uint `json:"height"`
}
func (*FetchedPicture) GetIndex ¶
func (f *FetchedPicture) GetIndex() uint
GetIndex implements shared.PictureLike.
func (*FetchedPicture) GetOriginal ¶
func (f *FetchedPicture) GetOriginal() string
GetOriginal implements shared.PictureLike.
func (*FetchedPicture) GetSize ¶
func (f *FetchedPicture) GetSize() (width uint, height uint)
GetSize implements shared.PictureLike.
func (*FetchedPicture) GetStorageInfo ¶
func (f *FetchedPicture) GetStorageInfo() shared.StorageInfo
GetStorageInfo implements shared.PictureLike.
func (*FetchedPicture) GetTelegramInfo ¶
func (f *FetchedPicture) GetTelegramInfo() shared.TelegramInfo
GetTelegramInfo implements shared.PictureLike.
func (*FetchedPicture) GetThumbnail ¶
func (f *FetchedPicture) GetThumbnail() string
GetThumbnail implements shared.PictureLike.
func (*FetchedPicture) IsHide ¶
func (f *FetchedPicture) IsHide() bool
IsHide implements shared.PictureLike.
type FetchedUgoiraMeta ¶
type FetchedUgoiraMeta struct {
Index uint `json:"index"`
Data shared.UgoiraMetaData `json:"data"`
}
type PictureEventItem ¶
type PictureEventItem struct {
ID objectuuid.ObjectUUID `json:"id"`
ArtworkID objectuuid.ObjectUUID `json:"artwork_id"`
OrderIndex uint `json:"index"`
Thumbnail string `json:"thumbnail"`
Original string `json:"original"`
Width uint `json:"width"`
Height uint `json:"height"`
Phash string `json:"phash"` // phash
ThumbHash string `json:"thumb_hash"` // thumbhash
CreatedAt time.Time `json:"created_at"`
UpdatedAt time.Time `json:"updated_at"`
}