Help us shape the future of Go! Take the 2026 Go Developer Survey

trmoe

package module
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2021 License: GPL-3.0 Imports: 8 Imported by: 4

README


gotracemoe

gotracemoe 是 golang 编写的 trace.moe API

Documentation

Index

Constants

View Source
const (
	BASE = "https://api.trace.moe"
)

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    Title    `json:"title"`
	Synonyms []string `json:"synonyms"`
	IsAdult  bool     `json:"isAdult"`
}

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 Moe

type Moe struct {
	// contains filtered or unexported fields
}

func NewMoe

func NewMoe(token string) *Moe

func (*Moe) Me

func (m *Moe) Me() ([]byte, error)

func (*Moe) Search

func (m *Moe) Search(path string, cutBlackBorders bool, includeAnilistInfo bool) (*Result, error)

type Result

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

type Title

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

Jump to

Keyboard shortcuts

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