Documentation ¶
Index ¶
Constants ¶
View Source
const (
InitialProgressPercentage = 5
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type GenericTrack ¶
type GenericTrack struct { jsonlib.Flatten[GenericTrackFields] }
func (*GenericTrack) CreateID ¶
func (g *GenericTrack) CreateID()
func (GenericTrack) GetID ¶
func (g GenericTrack) GetID() string
func (GenericTrack) IsNew ¶
func (g GenericTrack) IsNew() bool
type GenericTrackFields ¶
type GenericTrackFields struct { TrackFields TrackType string `json:"track_type"` }
type SplitRequestStatus ¶
type SplitRequestStatus string
const ( RequestedStatus SplitRequestStatus = "requested" ProcessingStatus SplitRequestStatus = "processing" ErrorStatus SplitRequestStatus = "error" )
type SplitRequestTrack ¶
type SplitRequestTrack struct { TrackFields TrackType SplitRequestType `json:"track_type"` OriginalURL string `json:"original_url"` Status SplitRequestStatus `json:"job_status"` StatusMessage string `json:"job_status_message"` StatusDebugLog string `json:"job_status_debug_log"` Progress int `json:"job_progress"` }
func (*SplitRequestTrack) CreateID ¶
func (s *SplitRequestTrack) CreateID()
func (SplitRequestTrack) GetID ¶
func (s SplitRequestTrack) GetID() string
func (*SplitRequestTrack) InitializeRequest ¶
func (s *SplitRequestTrack) InitializeRequest()
func (SplitRequestTrack) IsNew ¶
func (s SplitRequestTrack) IsNew() bool
type SplitRequestType ¶
type SplitRequestType string
const ( SplitTwoStemsType SplitRequestType = "split_2stems" SplitFourStemsType SplitRequestType = "split_4stems" SplitFiveStemsType SplitRequestType = "split_5stems" )
type StemTrack ¶
type StemTrack struct { TrackFields TrackType StemTrackType `json:"track_type"` StemURLs map[string]string `json:"stem_urls"` }
type StemTrackType ¶
type StemTrackType string
const ( TwoStemsType StemTrackType = "2stems" FourStemsType StemTrackType = "4stems" FiveStemsType StemTrackType = "5stems" )
type TrackFields ¶
type TrackList ¶
type TrackList struct { jsonlib.Flatten[TrackListFields] }
func NewTrackList ¶
func (*TrackList) EnsureTrackIDs ¶
func (t *TrackList) EnsureTrackIDs()
type TrackListFields ¶
type TrackUpdater ¶
Click to show internal directories.
Click to hide internal directories.