Documentation
¶
Index ¶
- Constants
- func ChunkSize(totalSize int) (int, int)
- type BookObj
- type ChapterObj
- type DataObj
- type DomainType
- type FandomType
- type FocusTag
- type HashType
- type IntegrityChecksObj
- type LanguageType
- type LoadWebDataType
- type NormalisedTextType
- type PersonType
- type PersonalityObj
- type RatingTag
- type SizesObj
- type StatusTag
- type TagType
- type TimesObj
- type UIDType
- type WorkObj
Constants ¶
Variables ¶
This section is empty.
Functions ¶
Types ¶
type BookObj ¶
type BookObj struct { Domain DomainType `json:"domain"` // хост-имя домена Author PersonalityObj `json:"author"` // Author pointer. Work WorkObj `json:"work"` // information about the Work Size SizesObj `json:"size"` // size of the Work Chapters []ChapterObj `json:"chapters"` // chapters of the Work }
type ChapterObj ¶
type ChapterObj struct { Chapter PersonalityObj `json:"chapter"` // Chapter pointer. Timestamp TimesObj `json:"timestamp"` // Chapter timestamps. Size SizesObj `json:"size"` // size of the Chapter Hash HashType `json:"hash"` // checksum of the Chapter Data NormalisedTextType `json:"data"` // text of the Chapter }
ChapterObj chapter content
type DomainType ¶
type DomainType string
type FandomType ¶
type FandomType string
type FocusTag ¶
type FocusTag byte
const ( FocusNil FocusTag = 0 // Direction is not defined. FocusOthers FocusTag = 1 // Other. Does not fit any of the definitions. FocusJen FocusTag = 50 // sexual relationships are not described or mentioned, nor do they play a decisive role. FocusGet FocusTag = 100 // romantic and/or sexual relationships between a man and a woman. FocusSlash FocusTag = 150 // romantic and/or sexual relationships between men. FocusFemSlash FocusTag = 200 // romantic and/or sexual relationships between women. )
type IntegrityChecksObj ¶
type LanguageType ¶
type LanguageType string // Тим языка по ISO-639
type LoadWebDataType ¶
type LoadWebDataType []byte
type NormalisedTextType ¶
type NormalisedTextType []byte
type PersonType ¶
type PersonType string
type PersonalityObj ¶
type RatingTag ¶
type RatingTag byte
const ( RatingNil RatingTag = 0 // Rating not determined. RatingG RatingTag = 1 // General audiences. Nudity, sexual scenes, and drug use are absent; violence is minimal; expressions may be used that go beyond polite conversation, but only those commonly found in everyday speech. RatingPG RatingTag = 2 // Parental guidance suggested. Explicit sexual scenes and drug use are absent; nudity, if present, is only very limited; mild profanity may be used and scenes of violence are presented, but only in very moderate amounts. RatingPG13 RatingTag = 3 // Parents strongly cautioned. May contain moderate or harsh violence; scenes of nudity may be present; there might be situations with a sexual context; some drug use scenes may occur; occasional use of coarse profanity is possible. RatingR RatingTag = 50 // Restricted. An R rating may be assigned due to frequent use of obscene language, prolonged scenes of violence, sexual activity, or drug use. RatingNC17 RatingTag = 100 // No One 17 & Under Admitted. The film may contain explicit sexual scenes, a large amount of obscene and sexual language, or scenes of excessive violence. An NC-17 rating, however, does not imply that the film is obscene or pornographic in either the everyday or legal sense of these words. RatingUnlimited RatingTag = 200 // No restrictions, any deviations are possible. )
type WorkObj ¶
type WorkObj struct { Work PersonalityObj `json:"work"` // Work pointer. Language LanguageType `json:"language"` // Work language. Timestamp HashType `json:"timestamp"` // Work timestamps. Hash HashType `json:"hash"` // global checksum of the Work Tags []TagType `json:"tags"` // теги Fandoms []FandomType `json:"fandoms"` // фендомы Personages []PersonType `json:"personages"` // персонажи Status StatusTag `json:"status"` // status of the Work Rating RatingTag `json:"rating"` // rating of the Work Focus FocusTag `json:"focus"` // focus of the Work Description NormalisedTextType `json:"description"` // description of the Work }
WorkObj Information about the work
Source Files
¶
Click to show internal directories.
Click to hide internal directories.