dynasty

package
v0.0.0-...-bd23c5e Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 22, 2025 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

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

func New

func New(scope *dig.Scope) core.Downloadable

Types

type Author

type Author Identifiable

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(log zerolog.Logger, httpClient *menou.Client, ps core.Client, repository Repository) *Builder

func (*Builder) Client

func (b *Builder) Client() services.Client

func (*Builder) DownloadMetadata

func (b *Builder) DownloadMetadata() payload.DownloadMetadata

func (*Builder) Logger

func (b *Builder) Logger() zerolog.Logger

func (*Builder) Normalize

func (b *Builder) Normalize(mangas []SearchData) []payload.Info

func (*Builder) Provider

func (b *Builder) Provider() models.Provider

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 (c Chapter) ChapterFloat() float64

func (Chapter) GetChapter

func (c Chapter) GetChapter() string

func (Chapter) GetId

func (c Chapter) GetId() string

func (Chapter) GetTitle

func (c Chapter) GetTitle() string

func (Chapter) GetVolume

func (c Chapter) GetVolume() string

func (Chapter) VolumeFloat

func (c Chapter) VolumeFloat() float64

type Identifiable

type Identifiable struct {
	DisplayName string
	Id          string
}

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

type SearchData struct {
	Id      string
	Title   string
	Authors []Author
	Tags    []Tag
}

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

func (s *Series) AllChapters() []Chapter

func (*Series) GetId

func (s *Series) GetId() string

func (*Series) GetTitle

func (s *Series) GetTitle() string

func (*Series) RefUrl

func (s *Series) RefUrl() string

type SeriesStatus

type SeriesStatus string
const (
	Completed SeriesStatus = "Completed"
	Ongoing   SeriesStatus = "Ongoing"
)

type Tag

type Tag Identifiable

func (Tag) Identifier

func (i Tag) Identifier() string

func (Tag) Value

func (i Tag) Value() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL