Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Album ¶
type Album struct { // name // Required: true Name *string `json:"name"` }
Album album
swagger:model Album
func (*Album) ContextValidate ¶ added in v0.11.1
ContextValidate validates this album based on context it is used
func (*Album) MarshalBinary ¶
MarshalBinary interface implementation
func (*Album) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Artist ¶
type Artist struct { // name // Required: true Name *string `json:"name"` // roles Roles []string `json:"roles"` }
Artist artist
swagger:model Artist
func (*Artist) ContextValidate ¶ added in v0.11.1
ContextValidate validates this artist based on context it is used
func (*Artist) MarshalBinary ¶
MarshalBinary interface implementation
func (*Artist) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Contributors ¶ added in v0.7.3
type Contributors struct { // composers Composers []string `json:"composers"` // lyricists Lyricists []string `json:"lyricists"` }
Contributors contributors
swagger:model Contributors
func (*Contributors) ContextValidate ¶ added in v0.11.1
ContextValidate validates this contributors based on context it is used
func (*Contributors) MarshalBinary ¶ added in v0.7.3
func (m *Contributors) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Contributors) UnmarshalBinary ¶ added in v0.7.3
func (m *Contributors) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Data ¶
type Data struct { // metadata // Required: true Metadata *Metadata `json:"metadata"` // result type ResultType int32 `json:"result_type,omitempty"` // status // Required: true Status *Status `json:"status"` }
Data data
swagger:model Data
func (*Data) ContextValidate ¶ added in v0.11.1
ContextValidate validate this data based on the context it is used
func (*Data) MarshalBinary ¶
MarshalBinary interface implementation
func (*Data) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Distributor ¶ added in v0.7.3
type Distributor struct { // id ID string `json:"id,omitempty"` // name Name string `json:"name,omitempty"` }
Distributor distributor
swagger:model Distributor
func (*Distributor) ContextValidate ¶ added in v0.11.1
ContextValidate validates this distributor based on context it is used
func (*Distributor) MarshalBinary ¶ added in v0.7.3
func (m *Distributor) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*Distributor) UnmarshalBinary ¶ added in v0.7.3
func (m *Distributor) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExternalIds ¶
type ExternalIds struct { // deezer Deezer string `json:"deezer,omitempty"` // isrc Isrc interface{} `json:"isrc,omitempty"` // itunes Itunes string `json:"itunes,omitempty"` // lyricfind Lyricfind string `json:"lyricfind,omitempty"` // musicstory Musicstory string `json:"musicstory,omitempty"` // spotify Spotify string `json:"spotify,omitempty"` // upc Upc interface{} `json:"upc,omitempty"` // youtube Youtube string `json:"youtube,omitempty"` }
ExternalIds external ids
swagger:model ExternalIds
func (*ExternalIds) ContextValidate ¶ added in v0.11.1
ContextValidate validates this external ids based on context it is used
func (*ExternalIds) MarshalBinary ¶
func (m *ExternalIds) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExternalIds) UnmarshalBinary ¶
func (m *ExternalIds) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type ExternalMetadata ¶
type ExternalMetadata struct { // deezer Deezer interface{} `json:"deezer,omitempty"` // isrc Isrc interface{} `json:"isrc,omitempty"` // itunes Itunes interface{} `json:"itunes,omitempty"` // lyricfind Lyricfind interface{} `json:"lyricfind,omitempty"` // musicstory Musicstory interface{} `json:"musicstory,omitempty"` // spotify Spotify interface{} `json:"spotify,omitempty"` // upc Upc interface{} `json:"upc,omitempty"` // youtube Youtube interface{} `json:"youtube,omitempty"` }
ExternalMetadata external metadata
swagger:model ExternalMetadata
func (*ExternalMetadata) ContextValidate ¶ added in v0.11.1
ContextValidate validates this external metadata based on context it is used
func (*ExternalMetadata) MarshalBinary ¶
func (m *ExternalMetadata) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*ExternalMetadata) UnmarshalBinary ¶
func (m *ExternalMetadata) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Genre ¶ added in v0.7.3
type Genre struct { // name Name string `json:"name,omitempty"` }
Genre genre
swagger:model Genre
func (*Genre) ContextValidate ¶ added in v0.11.1
ContextValidate validates this genre based on context it is used
func (*Genre) MarshalBinary ¶ added in v0.7.3
MarshalBinary interface implementation
func (*Genre) UnmarshalBinary ¶ added in v0.7.3
UnmarshalBinary interface implementation
type Lyrics ¶ added in v0.7.3
type Lyrics struct { // copyrights Copyrights []string `json:"copyrights"` }
Lyrics lyrics
swagger:model Lyrics
func (*Lyrics) ContextValidate ¶ added in v0.11.1
ContextValidate validates this lyrics based on context it is used
func (*Lyrics) MarshalBinary ¶ added in v0.7.3
MarshalBinary interface implementation
func (*Lyrics) UnmarshalBinary ¶ added in v0.7.3
UnmarshalBinary interface implementation
type Metadata ¶
type Metadata struct { // music Music []*Music `json:"music"` // played duration // Required: true PlayedDuration *int64 `json:"played_duration"` // timestamp utc // Required: true TimestampUtc *string `json:"timestamp_utc"` }
Metadata metadata
swagger:model Metadata
func (*Metadata) ContextValidate ¶ added in v0.11.1
ContextValidate validate this metadata based on the context it is used
func (*Metadata) MarshalBinary ¶
MarshalBinary interface implementation
func (*Metadata) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Music ¶
type Music struct { // acrid // Required: true Acrid *string `json:"acrid"` // album Album *Album `json:"album,omitempty"` // artists Artists []*Artist `json:"artists"` // contributors Contributors *Contributors `json:"contributors,omitempty"` // db begin time offset ms // Required: true DbBeginTimeOffsetMs *int64 `json:"db_begin_time_offset_ms"` // duration ms // Required: true DurationMs *int64 `json:"duration_ms"` // external ids // Required: true ExternalIds *ExternalIds `json:"external_ids"` // external metadata // Required: true ExternalMetadata *ExternalMetadata `json:"external_metadata"` // genres Genres []*Genre `json:"genres"` // label Label string `json:"label,omitempty"` // lyrics Lyrics *Lyrics `json:"lyrics,omitempty"` // play offset ms // Required: true PlayOffsetMs *int64 `json:"play_offset_ms"` // release by territories ReleaseByTerritories []*Territory `json:"release_by_territories"` // release date ReleaseDate string `json:"release_date,omitempty"` // result from // Required: true ResultFrom *int32 `json:"result_from"` // rights claim RightsClaim []*RightsClaim `json:"rights_claim"` // sample begin time offset ms // Required: true SampleBeginTimeOffsetMs *int64 `json:"sample_begin_time_offset_ms"` // sample end time offset ms // Required: true SampleEndTimeOffsetMs *int64 `json:"sample_end_time_offset_ms"` // score // Required: true // Maximum: 100 // Minimum: 0 Score *int64 `json:"score"` // title // Required: true Title *string `json:"title"` }
Music music
swagger:model Music
func (*Music) ContextValidate ¶ added in v0.11.1
ContextValidate validate this music based on the context it is used
func (*Music) MarshalBinary ¶
MarshalBinary interface implementation
func (*Music) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Result ¶
type Result struct { // ID ID int64 `json:"ID,omitempty" gorm:"primaryKey;"` // result Result *Webhook `json:"result,omitempty"` // timestamp // Format: date-time Timestamp strfmt.DateTime `json:"timestamp,omitempty" gorm:"type:time;index;"` }
Result result
swagger:model Result
func (*Result) ContextValidate ¶ added in v0.11.1
ContextValidate validate this result based on the context it is used
func (*Result) MarshalBinary ¶
MarshalBinary interface implementation
func (*Result) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type RightsClaim ¶ added in v0.7.3
type RightsClaim struct { // distributor Distributor *Distributor `json:"distributor,omitempty"` // rights claim policy RightsClaimPolicy string `json:"rights_claim_policy,omitempty"` // rights owners RightsOwners []*RightsOwner `json:"rights_owners"` // start date StartDate string `json:"start_date,omitempty"` // territories Territories []string `json:"territories"` }
RightsClaim rights claim
swagger:model RightsClaim
func (*RightsClaim) ContextValidate ¶ added in v0.11.1
ContextValidate validate this rights claim based on the context it is used
func (*RightsClaim) MarshalBinary ¶ added in v0.7.3
func (m *RightsClaim) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RightsClaim) UnmarshalBinary ¶ added in v0.7.3
func (m *RightsClaim) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type RightsOwner ¶ added in v0.7.3
type RightsOwner struct { // name Name string `json:"name,omitempty"` SharePercentage int64 `json:"share_percentage,omitempty"` }
RightsOwner rights owner
swagger:model RightsOwner
func (*RightsOwner) ContextValidate ¶ added in v0.11.1
ContextValidate validates this rights owner based on context it is used
func (*RightsOwner) MarshalBinary ¶ added in v0.7.3
func (m *RightsOwner) MarshalBinary() ([]byte, error)
MarshalBinary interface implementation
func (*RightsOwner) UnmarshalBinary ¶ added in v0.7.3
func (m *RightsOwner) UnmarshalBinary(b []byte) error
UnmarshalBinary interface implementation
type Status ¶
type Status struct { // code // Required: true Code *int32 `json:"code"` // msg // Required: true Msg *string `json:"msg"` // version // Required: true Version *string `json:"version"` }
Status status
swagger:model Status
func (*Status) ContextValidate ¶ added in v0.11.1
ContextValidate validates this status based on context it is used
func (*Status) MarshalBinary ¶
MarshalBinary interface implementation
func (*Status) UnmarshalBinary ¶
UnmarshalBinary interface implementation
type Territory ¶ added in v0.7.3
type Territory struct { // release date ReleaseDate string `json:"release_date,omitempty"` // territories Territories []string `json:"territories"` }
Territory territory
swagger:model Territory
func (*Territory) ContextValidate ¶ added in v0.11.1
ContextValidate validates this territory based on context it is used
func (*Territory) MarshalBinary ¶ added in v0.7.3
MarshalBinary interface implementation
func (*Territory) UnmarshalBinary ¶ added in v0.7.3
UnmarshalBinary interface implementation
type Webhook ¶
type Webhook struct { // data // Required: true Data *Data `json:"data"` // status // Required: true Status *int32 `json:"status"` // stream id // Required: true StreamID *string `json:"stream_id"` // stream url // Required: true StreamURL *string `json:"stream_url"` }
Webhook webhook
swagger:model Webhook
func (*Webhook) ContextValidate ¶ added in v0.11.1
ContextValidate validate this webhook based on the context it is used
func (*Webhook) MarshalBinary ¶
MarshalBinary interface implementation
func (*Webhook) UnmarshalBinary ¶
UnmarshalBinary interface implementation
Source Files ¶
- album.go
- artist.go
- contributors.go
- data.go
- deleted_at.go
- distributor.go
- external_ids.go
- external_metadata.go
- genre.go
- lyrics.go
- metadata.go
- metadata_scanner.go
- music.go
- principal.go
- result.go
- rights_claim.go
- rights_owner.go
- status.go
- status_scanner.go
- territory.go
- time.go
- webhook.go
- webhook_scanner.go