server

package
v0.0.0-...-84ee11d Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AlbumData

type AlbumData struct {
	Name     string
	ArtistId string
	CoverArt io.Reader
}

type ArtistData

type ArtistData struct {
	Name    string
	Picture io.Reader
}

type File

type File struct {
	ContentType string
	Name        string
	Content     io.Reader
}

type Server

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

func New

func New(baseUrl string) *Server

func (*Server) CreateAlbum

func (server *Server) CreateAlbum(data AlbumData) (*types.ApiPostAlbumData, error)

func (*Server) CreateArtist

func (server *Server) CreateArtist(data ArtistData) (*types.ApiPostArtistData, error)

func (*Server) CreateTrack

func (server *Server) CreateTrack(data TrackData) (*types.ApiPostTrackData, error)

func (*Server) GetArtistAlbums

func (server *Server) GetArtistAlbums(artistId string, name ...string) (*types.ApiGetArtistAlbumsByIdData, error)

func (*Server) GetArtists

func (server *Server) GetArtists(name ...string) (*types.ApiGetArtistsData, error)

type TrackData

type TrackData struct {
	Name              string
	Number            int
	AlbumId           string
	ArtistId          string
	BestQualityFile   File
	MobileQualityFile File
	CoverArt          File
}

Jump to

Keyboard shortcuts

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