Documentation ¶
Index ¶
- Variables
- type Kemono
- func (k *Kemono) Config() *config.SourceCommonConfig
- func (k *Kemono) FetchNewArtworks(limit int) ([]*types.Artwork, error)
- func (k *Kemono) FetchNewArtworksWithCh(artworkCh chan *types.Artwork, limit int) error
- func (k *Kemono) GetArtworkInfo(sourceURL string) (*types.Artwork, error)
- func (k *Kemono) GetCommonSourceURL(url string) string
- func (k *Kemono) GetFileName(artwork *types.Artwork, picture *types.Picture) string
- func (k *Kemono) GetPictureInfo(sourceURL string, index uint) (*types.Picture, error)
- func (k *Kemono) GetSourceURLRegexp() *regexp.Regexp
- func (k *Kemono) Init()
- type KemonoCreatorProfileResp
- type KemonoPostAttachment
- type KemonoPostResp
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Kemono ¶
type Kemono struct{}
func (*Kemono) Config ¶
func (k *Kemono) Config() *config.SourceCommonConfig
func (*Kemono) FetchNewArtworks ¶
func (*Kemono) FetchNewArtworksWithCh ¶
func (*Kemono) GetArtworkInfo ¶
func (*Kemono) GetCommonSourceURL ¶
func (*Kemono) GetFileName ¶
func (*Kemono) GetPictureInfo ¶
func (*Kemono) GetSourceURLRegexp ¶
type KemonoPostAttachment ¶
type KemonoPostResp ¶
type KemonoPostResp struct { Error string `json:"error"` ID string `json:"id"` User string `json:"user"` Service string `json:"service"` Title string `json:"title"` Content string `json:"content"` File struct { Name string `json:"name"` Path string `json:"path"` } `json:"file"` Attachments []KemonoPostAttachment `json:"attachments"` }
Click to show internal directories.
Click to hide internal directories.