entity

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RelationSequel             = "SEQUEL"
	RelationPrequel            = "PREQUEL"
	RelationAlternativeSetting = "ALTERNATIVE_SETTING"
	RelationAlternativeVersion = "ALTERNATIVE_VERSION"
	RelationSideStory          = "SIDE_STORY"
	RelationParentStory        = "PARENT_STORY"
	RelationSummary            = "SUMMARY"
	RelationFullStory          = "FULL_STORY"
	RelationSpinOff            = "SPIN_OFF"
	RelationAdaptation         = "ADAPTATION"
	RelationCharacter          = "CHARACTER"
	RelationOther              = "OTHER"
)

Available manga relation.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlternativeTitle

type AlternativeTitle struct {
	Synonyms []string
	English  string
	Japanese string
}

AlternativeTitle is entity for alternative title.

type Author

type Author struct {
	ID   int64
	Name string
	Role string
}

Author is entity for author.

type Date

type Date struct {
	Day   int
	Month int
	Year  int
}

Date is entity for date.

type Genre

type Genre struct {
	ID   int64
	Name string
}

Genre is entity for genre.

type Magazine

type Magazine struct {
	ID   int64
	Name string
}

Magazine is entity for magazine.

type Manga

type Manga struct {
	ID                int64
	Title             string
	AlternativeTitles AlternativeTitle
	Picture           string
	StartDate         Date
	EndDate           Date
	Synopsis          string
	Background        string
	NSFW              bool
	Type              Type
	Status            Status
	Chapter           int
	Volume            int
	Mean              float64
	Rank              int
	Popularity        int
	Member            int
	Voter             int
	Genres            []Genre
	Pictures          []string
	Related           []Related
	Authors           []Author
	Serialization     []Magazine
	UpdatedAt         time.Time
}

Manga is entity for manga.

func MangaFromNagato

func MangaFromNagato(ctx context.Context, manga *nagato.Manga) (*Manga, error)

MangaFromNagato to convert nagato to manga.

type Related struct {
	ID       int64
	Title    string
	Relation Relation
}

Related is entity for related.

type Relation

type Relation string

Relation is manga relation type.

type Status

type Status string

Status is manga publishing status.

const (
	StatusFinished     Status = "FINISHED"
	StatusReleasing    Status = "RELEASING"
	StatusNotYet       Status = "NOT_YET"
	StatusHiatus       Status = "HIATUS"
	StatusDiscontinued Status = "DISCONTINUED"
)

Available manga publishing status.

type Type

type Type string

Type is manga type.

const (
	TypeManga      Type = "MANGA"
	TypeNovel      Type = "NOVEL"
	TypeOneShot    Type = "ONE_SHOT"
	TypeDoujinshi  Type = "DOUJINSHI"
	TypeManhwa     Type = "MANHWA"
	TypeManhua     Type = "MANHUA"
	TypeOEL        Type = "OEL"
	TypeLightNovel Type = "LIGHT_NOVEL"
)

Available manga type.

Jump to

Keyboard shortcuts

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