Documentation
¶
Index ¶
- Constants
- func New(scope *dig.Scope) core.Downloadable
- type Author
- type Builder
- func (b *Builder) Client() services.Client
- func (b *Builder) DownloadMetadata() payload.DownloadMetadata
- func (b *Builder) Logger() zerolog.Logger
- func (b *Builder) Normalize(mangas []SearchData) []payload.Info
- func (b *Builder) Provider() models.Provider
- func (b *Builder) Search(s SearchOptions) ([]SearchData, error)
- func (b *Builder) Transform(s payload.SearchRequest) SearchOptions
- type Chapter
- type Identifiable
- type Repository
- type SearchData
- type SearchOptions
- type Series
- type SeriesStatus
- type Tag
Constants ¶
View Source
const ( DOMAIN = "https://dynasty-scans.com" SEARCH = DOMAIN + "/search?q=%s&classes[]=Series" SERIES = DOMAIN + "/series/%s" CHAPTER = DOMAIN + "/chapters/%s" RELEASEDATAFORMAT = "Jan 2 '06" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Author ¶
type Author Identifiable
type Builder ¶
type Builder struct {
// contains filtered or unexported fields
}
func NewBuilder ¶
func (*Builder) DownloadMetadata ¶
func (b *Builder) DownloadMetadata() payload.DownloadMetadata
func (*Builder) Search ¶
func (b *Builder) Search(s SearchOptions) ([]SearchData, error)
func (*Builder) Transform ¶
func (b *Builder) Transform(s payload.SearchRequest) SearchOptions
type Chapter ¶
type Chapter struct {
Id string
Title string
Volume string
Chapter string
ReleaseDate *time.Time
Tags []Tag
Authors []Author
}
func (Chapter) ChapterFloat ¶
func (Chapter) GetChapter ¶
func (Chapter) VolumeFloat ¶
type Identifiable ¶
type Repository ¶
type Repository interface {
SearchSeries(ctx context.Context, options SearchOptions) ([]SearchData, error)
SeriesInfo(ctx context.Context, id string) (*Series, error)
ChapterImages(ctx context.Context, id string) ([]string, error)
}
func NewRepository ¶
func NewRepository(httpClient *menou.Client, log zerolog.Logger) Repository
type SearchData ¶
func (*SearchData) RefUrl ¶
func (s *SearchData) RefUrl() string
type SearchOptions ¶
type SearchOptions struct {
Query string
}
type Series ¶
type Series struct {
Id string
Title string
AltTitle string
Description string
Status SeriesStatus
CoverUrl string
Authors []Author
Tags []Tag
Chapters []Chapter
}
func (*Series) AllChapters ¶
type SeriesStatus ¶
type SeriesStatus string
const ( Completed SeriesStatus = "Completed" Ongoing SeriesStatus = "Ongoing" )
Click to show internal directories.
Click to hide internal directories.