model

package
v0.0.0-...-58bf9d8 Latest Latest
Warning

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

Go to latest
Published: Jun 7, 2023 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ArtistGroup

type ArtistGroup struct {
	ID      int    `json:"id"`
	Name    string `json:"name"`
	Members []int  `json:"members"`
}

func (ArtistGroup) ToOneOf

func (ag ArtistGroup) ToOneOf() *OneOfArtist

type ArtistSolo

type ArtistSolo struct {
	ID   int    `json:"id"`
	Name string `json:"name"`
}

func (ArtistSolo) ToOneOf

func (as ArtistSolo) ToOneOf() *OneOfArtist

type Clip

type Clip struct {
	ID    int
	Media int
	Start int
	End   int
}

NOTE: unused

type Media

type Media struct {
	ID     int
	Tracks []int
	Source string
}

type MediaTrack

type MediaTrack struct {
	ID          int
	ParentMedia int
	HasAudio    bool
	HasVideo    bool
	HasPicture  bool
}

type OneOfArtist

type OneOfArtist struct {
	ArtistType string `json:"type"`
	ID         int    `json:"id"`
	Name       string `json:"name"`
	Members    []int  `json:"members,omitempty"`
}

type Performance

type Performance struct {
	ID      int
	Song    int
	Artists []int
	Media   []int
}

NOTE: unused

type Playlist

type Playlist struct {
	ID    int
	Name  string
	Items []int
}

type ResponseObject

type ResponseObject struct {
	Order []int `json:"order,omitempty"`

	Artists map[int]*OneOfArtist `json:"artists,omitempty"`

	Media      map[int]*Media      `json:"media,omitempty"`
	MediaTrack map[int]*MediaTrack `json:"mediaTracks,omitempty"`
	TMPFile    map[int]*TMPFile    `json:"tmpFiles,omitempty"`

	Playlists   map[int]*Playlist    `json:"playlists,omitempty"`
	Clip        map[int]*Clip        `json:"clips,omitempty"`
	Song        map[int]*Song        `json:"songs,omitempty"`
	Performance map[int]*Performance `json:"performances,omitempty"`
}

type Song

type Song struct {
	ID             int
	Name           string
	Artists        []int
	PreferredAudio int
	PreferredVideo int
}

NOTE: unused

type TMPFile

type TMPFile struct {
	ID          int
	ParentMedia int
	AccessToken string
	Location    string `json:"-"`
	MaxAge      int
}

func NewTMPFile

func NewTMPFile(parentID int) (*TMPFile, error)

Jump to

Keyboard shortcuts

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