Documentation
¶
Index ¶
- func SubjectTypeString(s uint8) string
- type Character
- type CharacterSubjectRelation
- type Collection
- type Count
- type Episode
- type Index
- type Person
- type PersonCharacterRelation
- type PersonImages
- type PersonSubjectRelation
- type Platform
- type Rating
- type Subject
- type SubjectImages
- type SubjectInternalRelation
- type SubjectType
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SubjectTypeString ¶
Types ¶
type Character ¶
type Character struct {
Name string
Image string
Infobox string
Summary string
ID uint32
Redirect uint32
CollectCount uint32
CommentCount uint32
FieldBirthYear uint16
Producer bool
Type uint8
Artist bool
Seiyu bool
Writer bool
Illustrator bool
Actor bool
FieldBloodType uint8
FieldGender uint8
FieldBirthMon uint8
Locked bool
FieldBirthDay uint8
NSFW bool
}
type CharacterSubjectRelation ¶
type CharacterSubjectRelation struct {
Type uint8
}
type Collection ¶
type Person ¶
type Person struct {
Name string
Image string
Infobox string
Summary string
ID uint32
Redirect uint32
CollectCount uint32
CommentCount uint32
FieldBirthYear uint16
Producer bool
Mangaka bool
Type uint8
Artist bool
Seiyu bool
Writer bool
Illustrator bool
Actor bool
FieldBloodType uint8
FieldGender uint8
FieldBirthMon uint8
Locked bool
FieldBirthDay uint8
}
type PersonCharacterRelation ¶
type PersonCharacterRelation struct {
Type uint8
}
type PersonImages ¶
type PersonImages struct {
Small string `json:"small"`
Grid string `json:"grid"`
Large string `json:"large"`
Medium string `json:"medium"`
}
func PersonImage ¶
func PersonImage(s string) PersonImages
type PersonSubjectRelation ¶
type PersonSubjectRelation struct {
ID uint16
}
type Platform ¶
type Subject ¶
type Subject struct {
Image string
Summary string
Name string
Date string // first release date
NameCN string
Infobox string
CompatRawTags []byte // compat field for old tags
OnHold uint32
Dropped uint32
Volumes uint32
Eps uint32
Wish uint32
Collect uint32
Doing uint32
ID uint32
PlatformID uint16
TypeID SubjectType
Ban uint8
Airtime uint8 // air weekday, start from
NSFW bool
Rating Rating
Redirect uint32
}
type SubjectImages ¶
type SubjectImages struct {
Small string `json:"small"`
Grid string `json:"grid"`
Large string `json:"large"`
Medium string `json:"medium"`
Common string `json:"common"`
}
func SubjectImage ¶
func SubjectImage(s string) SubjectImages
type SubjectInternalRelation ¶
type SubjectInternalRelation struct {
Type uint16
}
type SubjectType ¶
type SubjectType = uint8
const ( SubjectBook SubjectType = iota + 1 SubjectAnime SubjectMusic SubjectGame SubjectReal )
Click to show internal directories.
Click to hide internal directories.