models

package
v0.12.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2023 License: AGPL-3.0 Imports: 11 Imported by: 1

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

func (m *Album) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this album based on context it is used

func (*Album) MarshalBinary

func (m *Album) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Album) UnmarshalBinary

func (m *Album) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Album) Validate

func (m *Album) Validate(formats strfmt.Registry) error

Validate validates this album

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

func (m *Artist) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this artist based on context it is used

func (*Artist) MarshalBinary

func (m *Artist) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Artist) UnmarshalBinary

func (m *Artist) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Artist) Validate

func (m *Artist) Validate(formats strfmt.Registry) error

Validate validates this artist

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

func (m *Contributors) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Contributors) Validate added in v0.7.3

func (m *Contributors) Validate(formats strfmt.Registry) error

Validate validates this contributors

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

func (m *Data) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this data based on the context it is used

func (*Data) MarshalBinary

func (m *Data) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Data) UnmarshalBinary

func (m *Data) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Data) Validate

func (m *Data) Validate(formats strfmt.Registry) error

Validate validates this data

type DeletedAt

type DeletedAt struct {
	gorm.DeletedAt
}

DeletedAt deleted at

swagger:model DeletedAt

func (DeletedAt) Validate

func (m DeletedAt) Validate(formats strfmt.Registry) error

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

func (m *Distributor) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*Distributor) Validate added in v0.7.3

func (m *Distributor) Validate(formats strfmt.Registry) error

Validate validates this distributor

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

func (m *ExternalIds) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ExternalIds) Validate

func (m *ExternalIds) Validate(formats strfmt.Registry) error

Validate validates this external ids

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

func (m *ExternalMetadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*ExternalMetadata) Validate

func (m *ExternalMetadata) Validate(formats strfmt.Registry) error

Validate validates this external metadata

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

func (m *Genre) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this genre based on context it is used

func (*Genre) MarshalBinary added in v0.7.3

func (m *Genre) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Genre) UnmarshalBinary added in v0.7.3

func (m *Genre) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Genre) Validate added in v0.7.3

func (m *Genre) Validate(formats strfmt.Registry) error

Validate validates this genre

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

func (m *Lyrics) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this lyrics based on context it is used

func (*Lyrics) MarshalBinary added in v0.7.3

func (m *Lyrics) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Lyrics) UnmarshalBinary added in v0.7.3

func (m *Lyrics) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Lyrics) Validate added in v0.7.3

func (m *Lyrics) Validate(formats strfmt.Registry) error

Validate validates this lyrics

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

func (m *Metadata) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this metadata based on the context it is used

func (*Metadata) MarshalBinary

func (m *Metadata) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Metadata) Scan added in v0.7.1

func (m *Metadata) Scan(value interface{}) error

Scan JSONB data from DB into a Webook struct

func (*Metadata) UnmarshalBinary

func (m *Metadata) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Metadata) Validate

func (m *Metadata) Validate(formats strfmt.Registry) error

Validate validates this metadata

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

func (m *Music) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this music based on the context it is used

func (*Music) MarshalBinary

func (m *Music) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Music) UnmarshalBinary

func (m *Music) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Music) Validate

func (m *Music) Validate(formats strfmt.Registry) error

Validate validates this music

type Principal

type Principal string

Principal principal

swagger:model principal

func (Principal) Validate

func (m Principal) Validate(formats strfmt.Registry) error

Validate validates this principal

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

func (m *Result) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this result based on the context it is used

func (*Result) MarshalBinary

func (m *Result) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Result) UnmarshalBinary

func (m *Result) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Result) Validate

func (m *Result) Validate(formats strfmt.Registry) error

Validate validates this result

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

func (m *RightsClaim) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*RightsClaim) Validate added in v0.7.3

func (m *RightsClaim) Validate(formats strfmt.Registry) error

Validate validates this rights claim

type RightsOwner added in v0.7.3

type RightsOwner struct {

	// name
	Name string `json:"name,omitempty"`

	// share percentage
	SharePercentage int64 `json:"share_percentage,omitempty"`
}

RightsOwner rights owner

swagger:model RightsOwner

func (*RightsOwner) ContextValidate added in v0.11.1

func (m *RightsOwner) ContextValidate(ctx context.Context, formats strfmt.Registry) error

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

func (*RightsOwner) Validate added in v0.7.3

func (m *RightsOwner) Validate(formats strfmt.Registry) error

Validate validates this rights owner

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

func (m *Status) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this status based on context it is used

func (*Status) MarshalBinary

func (m *Status) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Status) Scan added in v0.7.1

func (m *Status) Scan(value interface{}) error

Scan JSONB data from DB into a Webook struct

func (*Status) UnmarshalBinary

func (m *Status) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Status) Validate

func (m *Status) Validate(formats strfmt.Registry) error

Validate validates this status

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

func (m *Territory) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validates this territory based on context it is used

func (*Territory) MarshalBinary added in v0.7.3

func (m *Territory) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Territory) UnmarshalBinary added in v0.7.3

func (m *Territory) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Territory) Validate added in v0.7.3

func (m *Territory) Validate(formats strfmt.Registry) error

Validate validates this territory

type Time

type Time int64

Time time

swagger:model Time

func (Time) Validate

func (m Time) Validate(formats strfmt.Registry) error

Validate validates this time

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

func (m *Webhook) ContextValidate(ctx context.Context, formats strfmt.Registry) error

ContextValidate validate this webhook based on the context it is used

func (*Webhook) MarshalBinary

func (m *Webhook) MarshalBinary() ([]byte, error)

MarshalBinary interface implementation

func (*Webhook) Scan

func (m *Webhook) Scan(value interface{}) error

Scan JSONB data from DB into a Webook struct

func (*Webhook) UnmarshalBinary

func (m *Webhook) UnmarshalBinary(b []byte) error

UnmarshalBinary interface implementation

func (*Webhook) Validate

func (m *Webhook) Validate(formats strfmt.Registry) error

Validate validates this webhook

Jump to

Keyboard shortcuts

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