types

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2024 License: MIT Imports: 1 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiAlbum

type ApiAlbum struct {
	Id       string `json:"id"`
	Name     string `json:"name"`
	CoverArt string `json:"coverArt"`
	ArtistId string `json:"artistId"`
}

type ApiArtist

type ApiArtist struct {
	Id      string `json:"id"`
	Name    string `json:"name"`
	Picture string `json:"picture"`
}

type ApiError

type ApiError struct {
	Status  int    `json:"status"`
	Message string `json:"message"`
	Data    any    `json:"data,omitempty"`
}

func ApiBadRequestError

func ApiBadRequestError(message string, data ...any) ApiError

func ApiNotFoundError

func ApiNotFoundError(message string, data ...any) ApiError

func NewApiError

func NewApiError(status int, message string, data ...any) ApiError

func (ApiError) Error

func (err ApiError) Error() string

type ApiResponse

type ApiResponse struct {
	Status int `json:"status"`
	Data   any `json:"data"`
}

func NewApiResponse

func NewApiResponse(data any) ApiResponse

type ApiTrack

type ApiTrack struct {
	Id                string `json:"id"`
	Number            string `json:"number"`
	Name              string `json:"name"`
	CoverArt          string `json:"coverArt"`
	BestQualityFile   string `json:"bestQualityFile"`
	MobileQualityFile string `json:"mobileQualityFile"`
	AlbumId           string `json:"albumId"`
	ArtistId          string `json:"artistId"`
	AlbumName         string `json:"albumName"`
	ArtistName        string `json:"artistName"`
}

type Map

type Map map[string]any

Jump to

Keyboard shortcuts

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