notifymoeweb

package
v0.0.0-...-9e29a38 Latest Latest
Warning

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

Go to latest
Published: Feb 4, 2020 License: MIT Imports: 6 Imported by: 1

Documentation

Index

Constants

View Source
const APIEndpoint = "https://notify.moe/api/"

APIEndpoint API endpoint for notify moe

View Source
const APIEndpointAnime = APIEndpoint + "anime/"

APIEndpointAnime endpoint to anime

View Source
const APIEndpointAnimeList = APIEndpoint + "animelist/"

APIEndpointAnimeList endpoint to animelist

View Source
const APIEndpointEpisode = APIEndpoint + "episode/"

APIEndpointEpisode endpoint to episode

View Source
const APIEndpointNickToUser = APIEndpoint + "nicktouser/"

APIEndpointNickToUser endpoint to nicktouser

View Source
const AnimeListItemStatusWatching = "watching"

AnimeListItemStatusWatching watching status string

View Source
const AnimeStatusCurrent = "current"

AnimeStatusCurrent current status string

Variables

This section is empty.

Functions

This section is empty.

Types

type AiringDate

type AiringDate struct {
	Start string
	End   string
}

AiringDate from notify moe api

type Anime

type Anime struct {
	Title    AnimeTitle
	Status   string
	Episode  int
	Episodes []string
}

Anime from notify moe api

type AnimeTitle

type AnimeTitle struct {
	Romaji string
}

AnimeTitle from notify moe api

type AnimeWithEpisode

type AnimeWithEpisode struct {
	CurEpisode int
	Anime      Anime
}

AnimeWithEpisode custom helper struct, wrapping episode around an Anime struct

type Animelist

type Animelist struct {
	Items []AnimelistItem
}

Animelist from notify moe api

type AnimelistItem

type AnimelistItem struct {
	AnimeID  string
	Status   string
	Episodes int
}

AnimelistItem from notify moe api

type Episode

type Episode struct {
	Number     int
	AiringDate AiringDate
}

Episode from notify moe api

type NotifyMoeService

type NotifyMoeService interface {
	FetchCurrentlyWatchingAndAiringAnimes() ([]config.StateItem, error)
}

NotifyMoeService api

func NewNotifyMoeService

func NewNotifyMoeService(configSvc config.ConfigurationService) NotifyMoeService

NewNotifyMoeService creates a new NotifyMoeService

type User

type User struct {
	Nick   string
	UserID string
}

User from notify moe api

Jump to

Keyboard shortcuts

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