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: 3

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