controllers

package
v0.0.0-...-e1ec090 Latest Latest
Warning

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

Go to latest
Published: Aug 19, 2022 License: AGPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddUserToGuild

func AddUserToGuild(discordID, guildID string) (*model.GuildMember, error)

AddUserToGuild adds a member to a guild in the cache

func AlbumPlays

func AlbumPlays(userInput model.UserInput, settings *model.AlbumPlaysSettings) ([]*model.AlbumCount, error)

func AlbumTopTracks

func AlbumTopTracks(userInput model.UserInput, albumInput model.AlbumInput) (*model.AlbumTopTracksResponse, error)

func ArtistPlays

func ArtistPlays(userInput model.UserInput, settings *model.ArtistPlaysSettings) ([]*model.ArtistCount, error)

func ArtistRank

func ArtistRank(artistInput model.ArtistInput, userInput model.UserInput, serverID *string) (*model.ArtistRankResponse, error)

func ArtistTopAlbums

func ArtistTopAlbums(userInput model.UserInput, artistInput model.ArtistInput) (*model.ArtistTopAlbumsResponse, error)

Returns a list of a users top scrobbled albums under a user

func ArtistTopTracks

func ArtistTopTracks(userInput model.UserInput, artistInput model.ArtistInput) (*model.ArtistTopTracksResponse, error)

func Artists

func Artists(ctx context.Context, inputs []*model.ArtistInput, tagInput *model.TagInput, requireTagsForMissing *bool) ([]*model.Artist, error)

func DeleteGuild

func DeleteGuild(guildID string) (*string, error)

func GuildMembers

func GuildMembers(guildID string) ([]*model.GuildMember, error)

GuildMembers lists the guild members in a given server

func ImportRatings

func ImportRatings(csvString string, userInput model.UserInput) (*string, error)

func Login

func Login(username string, session *string, discordID string) (*model.User, error)

Login logs a user in

func Logout

func Logout(discordID string) (*string, error)

Logout logs a user out and deletes all their data

func Ping

func Ping() (string, error)

Ping Pong!

func Plays

func Plays(playsInput model.PlaysInput, pageInput *model.PageInput) (*model.PlaysResponse, error)

func RateYourMusicArtist

func RateYourMusicArtist(keywords string) (*model.RateYourMusicArtist, error)

func Ratings

func Ratings(settings *model.RatingsSettings) (*model.RatingsResponse, error)

func RemoveUserFromGuild

func RemoveUserFromGuild(discordID, guildID string) (*string, error)

RemoveUserFromGuild removes a member from a guild in the cache

func SearchArtist

func SearchArtist(criteria model.ArtistSearchCriteria, settings *model.SearchSettings) (*model.ArtistSearchResults, error)

func SyncGuild

func SyncGuild(discordIDs []string, guildID string) (*string, error)

SyncGuild syncs a list of members with a guild

func TagArtists

func TagArtists(artists []*model.ArtistInput, tags []*model.TagInput, markAsChecked *bool) (*string, error)

func Tags

func Tags(settings *model.TagsSettings, requireTagsForMissing *bool) (*model.TagsResponse, error)

func TrackTopAlbums

func TrackTopAlbums(userInput model.UserInput, trackInput model.TrackInput) (*model.TrackTopAlbumsResponse, error)

func UpdatePrivacy

func UpdatePrivacy(userInput model.UserInput, privacy *model.Privacy) (*string, error)

func Users

func Users(inputs []*model.UserInput) ([]*model.User, error)

func WhoFirstArtist

func WhoFirstArtist(artistInput model.ArtistInput, settings *model.WhoKnowsSettings, whoLast *bool) (*model.WhoFirstArtistResponse, error)

func WhoKnowsAlbum

func WhoKnowsAlbum(albumInput model.AlbumInput, settings *model.WhoKnowsSettings) (*model.WhoKnowsAlbumResponse, error)

WhoKnowsAlbum returns a list of who has plays of an album

func WhoKnowsArtist

func WhoKnowsArtist(artistInput model.ArtistInput, settings *model.WhoKnowsSettings) (*model.WhoKnowsArtistResponse, error)

WhoKnowsArtist returns a list of who has plays of an artist

func WhoKnowsTrack

func WhoKnowsTrack(trackInput model.TrackInput, settings *model.WhoKnowsSettings) (*model.WhoKnowsTrackResponse, error)

WhoKnowsTrack returns a list of who has plays of an track

Types

type ArtistsTagsMap

type ArtistsTagsMap = map[int][]int

Jump to

Keyboard shortcuts

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