twist

package module
v0.2.6 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 4 Imported by: 2 modules, 3 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

twist

Godoc Report Tests Coverage Sponsor

API client for twist.moe written in Go.

Style

Please take a look at the style guidelines if you'd like to make a pull request.

Sponsors

Cedric Fung Scott Rayapoullé Eduard Urbach
Cedric Fung Scott Rayapoullé Eduard Urbach

Want to see your own name here?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Anime

type Anime struct {
	KitsuID int `json:"kitsu:id"`
}

Anime represents a single anime on twist.moe.

type AnimeIndex

type AnimeIndex struct {
	Items []*Anime `json:"items"`
}

AnimeIndex represents all anime on twist.moe.

func GetAnimeIndex

func GetAnimeIndex() (*AnimeIndex, error)

GetAnimeIndex queries information about all anime on twist.moe.

func (*AnimeIndex) KitsuIDs

func (index *AnimeIndex) KitsuIDs() []string

KitsuIDs returns an array of all Kitsu IDs.

type Episode

type Episode struct {
	Link         string `json:"link"`
	Number       int    `json:"episode:number"`
	AnimeTwistID int    `json:"animetwist:id"`
}

Episode represents a single episode on twist.moe.

type Feed

type Feed struct {
	Episodes []*Episode `json:"items"`
}

Feed represents an episode feed object returned by the twist.moe API.

func GetFeed

func GetFeed(twistID string) (*Feed, error)

GetFeed queries a twist.moe feed by the twist.moe internal ID.

func GetFeedByKitsuID

func GetFeedByKitsuID(kitsuID string) (*Feed, error)

GetFeedByKitsuID queries a twist.moe feed by the Kitsu ID.

Jump to

Keyboard shortcuts

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