Documentation ¶
Index ¶
- Variables
- func GetGalleryID(url string) string
- type Nhentai
- func (n *Nhentai) Config() *config.SourceCommonConfig
- func (n *Nhentai) FetchNewArtworks(limit int) ([]*types.Artwork, error)
- func (n *Nhentai) FetchNewArtworksWithCh(artworkCh chan *types.Artwork, limit int) error
- func (n *Nhentai) GetArtworkInfo(sourceURL string) (*types.Artwork, error)
- func (n *Nhentai) GetCommonSourceURL(url string) string
- func (n *Nhentai) GetFileName(artwork *types.Artwork, picture *types.Picture) string
- func (n *Nhentai) GetPictureInfo(sourceURL string, i uint) (*types.Picture, error)
- func (n *Nhentai) GetSourceURLRegexp() *regexp.Regexp
- func (n *Nhentai) Init(_ types.Service)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrorInvalidNhentaiURL = errors.New("invalid nhentai url") ErrNhentaiResponseError = errors.New("nhentai response error") )
Functions ¶
func GetGalleryID ¶
Types ¶
type Nhentai ¶
type Nhentai struct{}
func (*Nhentai) Config ¶
func (n *Nhentai) Config() *config.SourceCommonConfig
func (*Nhentai) FetchNewArtworks ¶
func (*Nhentai) FetchNewArtworksWithCh ¶
func (*Nhentai) GetArtworkInfo ¶
func (*Nhentai) GetCommonSourceURL ¶
func (*Nhentai) GetFileName ¶
func (*Nhentai) GetPictureInfo ¶
func (*Nhentai) GetSourceURLRegexp ¶
Click to show internal directories.
Click to hide internal directories.