types

package
v1.13.1 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2022 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anilist

type Anilist struct {
	ID       int        `json:"id"`
	IDMal    int        `json:"idMal"`
	Title    AnimeTitle `json:"title"`
	Synonyms []string   `json:"synonyms"`
	IsAdult  bool       `json:"isAdult"`
}

Anilist struct - information about the anime passed in the request to trace.moe API

type Anime

type Anime struct {
	Anilist    Anilist `json:"anilist"`
	Filename   string  `json:"filename"`
	Episode    int     `json:"episode"`
	From       float32 `json:"from"`
	To         float32 `json:"to"`
	Similarity float64 `json:"similarity"`
	Video      string  `json:"video"`
	Image      string  `json:"image"`
}

type AnimeTitle

type AnimeTitle struct {
	Native  string `json:"native"`
	Romaji  string `json:"romaji"`
	English string `json:"english"`
}

AnimeTitle struct - information about the anime title

type Response

type Response struct {
	FrameCount int     `json:"frameCount"`
	Error      string  `json:"error"`
	Result     []Anime `json:"result"`
}

Response struct - content of trace.moe API request result

type UsageTraceMoe

type UsageTraceMoe struct {
	ID          string `json:"id"`
	Priority    int    `json:"priority"`
	Concurrency int    `json:"concurrency"`
	Quota       int    `json:"quota"`
	QuotaUsed   int    `json:"quotaUsed"`
}

UsageTraceMoe struct - content of request usage to trace moe

Jump to

Keyboard shortcuts

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