types

package
v0.0.0-...-5b6b915 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeTopic = "Topic"
	TypeUser  = "User"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Anime

type Anime struct {
	ID                 uint                 `json:"id"`
	Name               string               `json:"name"`
	Russian            string               `json:"russian"`
	Image              Image                `json:"image"`
	Url                string               `json:"url"`
	Kind               string               `json:"kind"`
	Score              string               `json:"score"`
	Status             string               `json:"status"`
	Episodes           uint                 `json:"episodes"`
	EpisodesAired      uint                 `json:"episodes_aired"`
	AiredOn            string               `json:"aired_on"`
	ReleasedOn         string               `json:"released_on"`
	Rating             string               `json:"rating"`
	English            []string             `json:"english"`
	Japanese           []string             `json:"japanese"`
	Synonyms           []string             `json:"synonyms"`
	LicenseNameRu      string               `json:"license_name_ru"`
	Duration           uint                 `json:"duration"`
	Description        string               `json:"description"`
	DescriptionHtml    string               `json:"description_html"`
	DescriptionSource  *string              `json:"description_source"`
	Franchise          string               `json:"franchise"`
	Favoured           bool                 `json:"favoured"`
	Anons              bool                 `json:"anons"`
	Ongoing            bool                 `json:"ongoing"`
	ThreadID           uint                 `json:"thread_id"`
	TopicID            uint                 `json:"topic_id"`
	MyanimelistID      uint                 `json:"myanimelist_id"`
	RatesStatutesStats []RatesStatutesStats `json:"rates_statuses_stats"`
	UpdatedAt          string               `json:"updated_at"`
	NextEpisodeAt      *string              `json:"next_episode_at"`
	Fansubbers         []string             `json:"fansubbers"`
	Fandubbers         []string             `json:"fandubbers"`
	Licensors          []string             `json:"licensors"`
	Genres             []Genre              `json:"genres"`
	Studios            []Studio             `json:"studios"`
	Videos             []Video              `json:"videos"`
	Screenshots        []Screenshot         `json:"screenshots"`
}

type Character

type Character struct {
	ID                uint    `json:"id"`
	Name              string  `json:"name"`
	Russian           *string `json:"russian"`
	Image             Image   `json:"image"`
	URL               string  `json:"url"`
	Altname           *string `json:"altname"`
	Japanese          string  `json:"japanese"`
	Description       *string `json:"description"`
	DescriptionSource *string `json:"description_source"`
	ThreadID          uint    `json:"thread_id"`
	TopicID           uint    `json:"topic_id"`
}

type Comment

type Comment struct {
	ID              uint      `json:"id"`
	UserID          uint      `json:"user_id"`
	CommentableID   uint      `json:"commentable_id"`
	CommentableType string    `json:"commentable_type"`
	Body            string    `json:"body"`
	CreatedAt       time.Time `json:"created_at"`
	UpdatedAt       time.Time `json:"updated_at"`
	IsOfftopic      bool      `json:"is_offtopic"`
	User            User      `json:"user"`
}

type Dialog

type Dialog struct {
	TargetUser User          `json:"target_user"`
	Message    DialogMessage `json:"message"`
}

type DialogMessage

type DialogMessage struct {
	ID        uint64    `json:"id"` // ~ 3 млрд
	Kind      string    `json:"kind"`
	Read      bool      `json:"read"`
	Body      string    `json:"body"`
	HtmlBody  string    `json:"html_body"`
	CreatedAt time.Time `json:"created_at"`
}

type Genre

type Genre struct {
	ID        uint   `json:"id"`
	Name      string `json:"name"`
	Russian   string `json:"russian"`
	Kind      string `json:"kind"`
	EntryType string `json:"entry_type"`
}

type Image

type Image struct {
	Original string `json:"original"`
	Preview  string `json:"preview"`
	X96      string `json:"x96"`
	X48      string `json:"x48"`
}

type Me

type Me struct {
	ID         uint       `json:"id"`
	Nickname   string     `json:"nickname"`
	Avatar     string     `json:"avatar"`
	Image      UserAvatar `json:"image"`
	LastOnline string     `json:"last_online_at"`
	URL        string     `json:"url"`
	Name       string     `json:"name,omitempty"`
	Sex        string     `json:"sex,omitempty"`
	Website    string     `json:"website,omitempty"`
	BirthOn    string     `json:"birth_on,omitempty"`
	FullYears  int        `json:"full_years,omitempty"`
	Locale     string     `json:"locale"`
}

type Message

type Message struct {
	ID        uint64    `json:"id"`
	Kind      string    `json:"kind"`
	Read      bool      `json:"read"`
	Body      string    `json:"body"`
	HtmlBody  string    `json:"html_body"`
	CreatedAt time.Time `json:"created_at"`
	From      User      `json:"from"`
	To        User      `json:"to"`
}

type RatesStatutesStats

type RatesStatutesStats struct {
	Name  string `json:"name"`
	Value uint   `json:"value"`
}

type Screenshot

type Screenshot struct {
	Original string `json:"original"`
	Preview  string `json:"preview"`
}

type Studio

type Studio struct {
	ID           uint   `json:"id"`
	Name         string `json:"name"`
	FilteredName string `json:"filtered_name"`
	Real         bool   `json:"real"`
	Image        string `json:"image"`
}

type Topic

type Topic struct {
	ID            uint       `json:"id"`
	TopicTitle    string     `json:"topic_title"`
	Body          string     `json:"body"`
	HtmlBody      string     `json:"html_body"`
	HtmlFooter    string     `json:"html_footer"`
	CreatedAt     time.Time  `json:"created_at"`
	CommentsCount uint       `json:"comments_count"`
	Forum         TopicForum `json:"forum"`
	User          User       `json:"user"`
}

type TopicForum

type TopicForum struct {
	ID        uint   `json:"id"`
	Position  uint   `json:"position"`
	Name      string `json:"name"`
	Permalink string `json:"permalink"`
	URL       string `json:"url"`
}

type UploadedImage

type UploadedImage struct {
	ID      uint   `json:"id"`
	Preview string `json:"preview"`
	URL     string `json:"url"`
	BBCode  string `json:"bbcode"`
}

type User

type User struct {
	ID           uint       `json:"id"`
	Nickname     string     `json:"nickname"`
	Avatar       string     `json:"avatar"`
	Image        UserAvatar `json:"image"`
	LastOnlineAt time.Time  `json:"last_online_at"`
	URL          string     `json:"url"`
}

type UserAvatar

type UserAvatar struct {
	X160 string `json:"x160"`
	X148 string `json:"x148"`
	X80  string `json:"x80"`
	X64  string `json:"x64"`
	X48  string `json:"x48"`
	X32  string `json:"x32"`
	X16  string `json:"x16"`
}

type UserProfile

type UserProfile struct {
	ID           uint       `json:"id"`
	Nickname     string     `json:"nickname"`
	Avatar       string     `json:"avatar"`
	Image        UserAvatar `json:"image"`
	LastOnlineAt time.Time  `json:"last_online_at"`
	URL          string     `json:"url"`
	Name         *string    `json:"name,omitempty"`
	Sex          *string    `json:"sex,omitempty"`
	FullYears    *int       `json:"full_years"`
	LastOnline   string     `json:"last_online"`
	Website      string     `json:"website"`
	Location     *string    `json:"location,omitempty"`
	Banned       bool       `json:"banned"`
	About        string     `json:"about"`
	AboutHTML    string     `json:"about_html"`
	CommonInfo   []string   `json:"common_info"`
	ShowComments bool       `json:"show_comments"`
	InFriends    *bool      `json:"in_friends"`
	IsIgnored    bool       `json:"is_ignored"`
	StyleID      *int       `json:"style_id"`
}

type Video

type Video struct {
	ID        uint   `json:"id"`
	Url       string `json:"url"`
	ImageUrl  string `json:"image_url"`
	PlayerUrl string `json:"player_url"`
	Name      string `json:"name"`
	Kind      string `json:"kind"`
	Hosing    string `json:"hosting"`
}

Jump to

Keyboard shortcuts

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