lastfm

package
v0.0.0-...-d7118ac Latest Latest
Warning

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

Go to latest
Published: Jul 28, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Report

func Report(client *Client, phase ReportPhase, song structs.Song, passedTime time.Duration)

Types

type AuthInvalid

type AuthInvalid struct {
	// contains filtered or unexported fields
}

type Client

type Client struct {
	// contains filtered or unexported fields
}

func NewClient

func NewClient() *Client

func (*Client) GetAuthUrlWithToken

func (c *Client) GetAuthUrlWithToken() (token, url string, err error)

func (*Client) GetSession

func (c *Client) GetSession(token string) (sessionKey string, err error)

func (*Client) GetUserInfo

func (c *Client) GetUserInfo(args map[string]any) (lastfmgo.UserGetInfo, error)

func (*Client) Scrobble

func (c *Client) Scrobble(args map[string]any) error

func (*Client) SetSession

func (c *Client) SetSession(session string)

func (*Client) UpdateNowPlaying

func (c *Client) UpdateNowPlaying(args map[string]any) error

type ReportPhase

type ReportPhase uint8
const (
	ReportPhaseStart ReportPhase = iota
	ReportPhaseComplete
)

Jump to

Keyboard shortcuts

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