sources

package
v0.0.0-...-d43e52e Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2018 License: MIT Imports: 15 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 {
	RequestLimiter *time.Ticker
}

AniList - https://anilist.co/

func (*AniList) GetAvatar

func (source *AniList) GetAvatar(user *arn.User) (*avatar.Avatar, error)

GetAvatar returns the Gravatar image for a user (if available).

type FileSystem

type FileSystem struct {
	Directory string
}

FileSystem loads avatar from the local filesystem.

func (*FileSystem) GetAvatar

func (source *FileSystem) GetAvatar(user *arn.User) (*avatar.Avatar, error)

GetAvatar returns the local image for the user.

type Gravatar

type Gravatar struct {
	Rating         string
	RequestLimiter *time.Ticker
}

Gravatar - https://gravatar.com/

func (*Gravatar) GetAvatar

func (source *Gravatar) GetAvatar(user *arn.User) (*avatar.Avatar, error)

GetAvatar returns the Gravatar image for a user (if available).

type MyAnimeList

type MyAnimeList struct {
	RequestLimiter *time.Ticker
}

MyAnimeList - https://myanimelist.net/

func (*MyAnimeList) GetAvatar

func (source *MyAnimeList) GetAvatar(user *arn.User) (*avatar.Avatar, error)

GetAvatar returns the Gravatar image for a user (if available).

type URL

type URL struct{}

URL ...

func (*URL) GetAvatar

func (source *URL) GetAvatar(user *arn.User) (*avatar.Avatar, error)

GetAvatar returns the Gravatar image for a user (if available).

Jump to

Keyboard shortcuts

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