types

package
v0.17.1 Latest Latest
Warning

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

Go to latest
Published: Nov 26, 2024 License: MIT Imports: 4 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Album added in v0.9.0

type Album struct {
	Id         string `json:"id"`
	Name       string `json:"name"`
	CoverArt   Images `json:"coverArt"`
	ArtistId   string `json:"artistId"`
	ArtistName string `json:"artistName"`
	Year       *int64 `json:"year"`
	Created    int64  `json:"created"`
	Updated    int64  `json:"updated"`
}

type Artist added in v0.9.0

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

type Body added in v0.13.0

type Body interface {
	Schema() jio.Schema
}

type Change added in v0.7.0

type Change[T any] struct {
	Value   T
	Changed bool
}

type DeletePlaylistItemsByIdBody added in v0.10.0

type DeletePlaylistItemsByIdBody struct {
	TrackIds []string `json:"trackIds"`
}

func (DeletePlaylistItemsByIdBody) Schema added in v0.13.0

func (DeletePlaylistItemsByIdBody) Validate added in v0.16.2

func (b DeletePlaylistItemsByIdBody) Validate(validator validate.Validator) error

type Error added in v0.11.0

type Error struct {
	Message string `json:"message"`
}

func (*Error) Error added in v0.11.0

func (e *Error) Error() string

type ErrorList added in v0.11.0

type ErrorList []*Error

func (*ErrorList) Add added in v0.11.0

func (p *ErrorList) Add(message string)

type ExportPlaylist added in v0.12.0

type ExportPlaylist struct {
	Name   string        `json:"name"`
	Tracks []ExportTrack `json:"tracks"`
}

type ExportTrack added in v0.12.0

type ExportTrack struct {
	Name   string `json:"name"`
	Album  string `json:"album"`
	Artist string `json:"artist"`
}

type ExportUser added in v0.12.0

type ExportUser struct {
	Username  string           `json:"username"`
	Playlists []ExportPlaylist `json:"playlists"`
}

type GetAlbumById added in v0.6.0

type GetAlbumById struct {
	Album
}

type GetAlbumTracksById added in v0.6.0

type GetAlbumTracksById struct {
	Tracks []Track `json:"tracks"`
}

type GetAlbums added in v0.6.0

type GetAlbums struct {
	Albums []Album `json:"albums"`
}

type GetArtistAlbumsById added in v0.6.0

type GetArtistAlbumsById struct {
	Albums []Album `json:"albums"`
}

type GetArtistById added in v0.6.0

type GetArtistById struct {
	Artist
}

type GetArtists added in v0.6.0

type GetArtists struct {
	Artists []Artist `json:"artists"`
}

type GetAuthMe added in v0.10.0

type GetAuthMe struct {
	Id       string `json:"id"`
	Username string `json:"username"`
	IsOwner  bool   `json:"isOwner"`
}

type GetPlaylistById added in v0.10.0

type GetPlaylistById struct {
	Playlist

	Items []Track `json:"items"`
}

type GetPlaylists added in v0.10.0

type GetPlaylists struct {
	Playlists []Playlist `json:"playlists"`
}

type GetSync added in v0.6.0

type GetSync struct {
	IsSyncing bool `json:"isSyncing"`
}

type GetSystemInfo added in v0.10.0

type GetSystemInfo struct {
	Version string `json:"version"`
}

type GetTags added in v0.9.0

type GetTags struct {
	Tags []Tag `json:"tags"`
}

type GetTrackById added in v0.6.0

type GetTrackById struct {
	Track
}

type GetTracks added in v0.6.0

type GetTracks struct {
	Tracks []Track `json:"tracks"`
}

type Images added in v0.17.0

type Images struct {
	Original string `json:"original"`
	Small    string `json:"small"`
	Medium   string `json:"medium"`
	Large    string `json:"large"`
}

type Map

type Map map[string]any

type Name added in v0.15.2

type Name struct {
	Kind NameKind
	Name string
}

type NameKind added in v0.15.2

type NameKind int
const (
	NameKindString NameKind = iota
	NameKindNumber
)

type Playlist added in v0.10.0

type Playlist struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type PostAuthSignin added in v0.10.0

type PostAuthSignin struct {
	Token string `json:"token"`
}

type PostAuthSigninBody added in v0.10.0

type PostAuthSigninBody struct {
	Username string `json:"username"`
	Password string `json:"password"`
}

func (PostAuthSigninBody) Schema added in v0.13.0

func (b PostAuthSigninBody) Schema() jio.Schema

func (PostAuthSigninBody) Validate added in v0.16.2

func (b PostAuthSigninBody) Validate(validator validate.Validator) error

type PostAuthSignup added in v0.10.0

type PostAuthSignup struct {
	Id       string `json:"id"`
	Username string `json:"username"`
}

type PostAuthSignupBody added in v0.10.0

type PostAuthSignupBody struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	PasswordConfirm string `json:"passwordConfirm"`
}

func (PostAuthSignupBody) Schema added in v0.13.0

func (b PostAuthSignupBody) Schema() jio.Schema

func (PostAuthSignupBody) Validate added in v0.16.2

func (b PostAuthSignupBody) Validate(validator validate.Validator) error

type PostPlaylist added in v0.10.0

type PostPlaylist struct {
	Playlist
}

type PostPlaylistBody added in v0.10.0

type PostPlaylistBody struct {
	Name string `json:"name"`
}

func (PostPlaylistBody) Schema added in v0.13.0

func (b PostPlaylistBody) Schema() jio.Schema

func (PostPlaylistBody) Validate added in v0.16.2

func (b PostPlaylistBody) Validate(validator validate.Validator) error

type PostPlaylistFilterBody added in v0.16.2

type PostPlaylistFilterBody struct {
	Name   string `json:"name"`
	Filter string `json:"filter"`
	Sort   string `json:"sort"`
}

func (PostPlaylistFilterBody) Schema added in v0.16.2

func (b PostPlaylistFilterBody) Schema() jio.Schema

func (PostPlaylistFilterBody) Validate added in v0.16.2

func (b PostPlaylistFilterBody) Validate(validator validate.Validator) error

type PostPlaylistItemsByIdBody added in v0.10.0

type PostPlaylistItemsByIdBody struct {
	Tracks []string `json:"tracks"`
}

func (PostPlaylistItemsByIdBody) Schema added in v0.13.0

func (PostPlaylistItemsByIdBody) Validate added in v0.16.2

func (b PostPlaylistItemsByIdBody) Validate(validator validate.Validator) error

type PostPlaylistsItemMoveByIdBody added in v0.10.0

type PostPlaylistsItemMoveByIdBody struct {
	TrackId string `json:"trackId"`
	ToIndex int    `json:"toIndex"`
}

func (PostPlaylistsItemMoveByIdBody) Schema added in v0.13.0

func (PostPlaylistsItemMoveByIdBody) Validate added in v0.16.2

func (b PostPlaylistsItemMoveByIdBody) Validate(validator validate.Validator) error

type PostQueue added in v0.9.0

type PostQueue struct {
	Tracks []Track `json:"tracks"`
}

type PostSystemExport added in v0.12.0

type PostSystemExport struct {
	Users []ExportUser `json:"users"`
}

type PostSystemSetupBody added in v0.10.0

type PostSystemSetupBody struct {
	Username        string `json:"username"`
	Password        string `json:"password"`
	PasswordConfirm string `json:"passwordConfirm"`
}

func (PostSystemSetupBody) Schema added in v0.13.0

func (b PostSystemSetupBody) Schema() jio.Schema

type Tag added in v0.9.0

type Tag struct {
	Id   string `json:"id"`
	Name string `json:"name"`
}

type Track added in v0.9.0

type Track struct {
	Id   string `json:"id"`
	Name string `json:"name"`

	AlbumId  string `json:"albumId"`
	ArtistId string `json:"artistId"`

	Number   *int64 `json:"number"`
	Duration *int64 `json:"duration"`
	Year     *int64 `json:"year"`

	OriginalMediaUrl string `json:"originalMediaUrl"`
	MobileMediaUrl   string `json:"mobileMediaUrl"`
	CoverArt         Images `json:"coverArt"`

	AlbumName  string `json:"albumName"`
	ArtistName string `json:"artistName"`

	Created int64 `json:"created"`
	Updated int64 `json:"updated"`

	Tags []string `json:"tags"`
}

type WorkDir added in v0.3.0

type WorkDir string

func (WorkDir) Album added in v0.16.2

func (d WorkDir) Album(id string) string

func (WorkDir) Albums added in v0.16.2

func (d WorkDir) Albums() string

func (WorkDir) Artist added in v0.17.0

func (d WorkDir) Artist(id string) string

func (WorkDir) Artists added in v0.16.2

func (d WorkDir) Artists() string

func (WorkDir) DatabaseFile added in v0.10.0

func (d WorkDir) DatabaseFile() string

func (WorkDir) ExportFile added in v0.16.2

func (d WorkDir) ExportFile() string

func (WorkDir) String added in v0.3.0

func (d WorkDir) String() string

func (WorkDir) Track added in v0.17.0

func (d WorkDir) Track(id string) string

func (WorkDir) Tracks added in v0.17.0

func (d WorkDir) Tracks() string

Jump to

Keyboard shortcuts

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