Documentation
¶
Index ¶
- Variables
- func ExtractClause(i interface{}) clause.OnConflict
- func GetProjectRoot() string
- func GetScriptFolderName() string
- func GetScriptPath() string
- func InsertMasterRelations(order Order) result.Result
- func InsertSimple[F, T any](order Order, topic string, localName string) result.Result
- func ReadScript() (string, error)
- func RunDDL(db *gorm.DB) error
- func Transform(item rxgo.Item) rxgo.Observable
- func WriteMasterRelations(order Order, res chan result.Result, wg *sync.WaitGroup) func(i interface{})
- type Batch
- type Order
- type Runner
- type Step
- type Transformable
- type Writer
- type XmlArtist
- type XmlArtistRelation
- type XmlContract
- type XmlCreditedArtist
- type XmlFormat
- type XmlGenreStyle
- type XmlIdentifier
- type XmlLabel
- type XmlLabelRelation
- type XmlLabelRelease
- type XmlMaster
- type XmlMasterRelation
- func (m *XmlMasterRelation) GetGenres() []*model.Genre
- func (m *XmlMasterRelation) GetMaster() *model.Master
- func (m *XmlMasterRelation) GetMasterArtists() []*model.MasterArtist
- func (m *XmlMasterRelation) GetMasterGenres() []*model.MasterGenre
- func (m *XmlMasterRelation) GetMasterStyles() []*model.MasterStyle
- func (m *XmlMasterRelation) GetMasterVideos() []*model.MasterVideo
- func (m *XmlMasterRelation) GetStyles() []*model.Style
- type XmlRef
- type XmlRelease
- type XmlReleaseMasterInfo
- type XmlReleaseRelation
- func (r *XmlReleaseRelation) GetContracts() []*model.ReleaseContract
- func (r *XmlReleaseRelation) GetCreditedArtists() []*model.ReleaseCreditedArtist
- func (r *XmlReleaseRelation) GetFormats() []*model.ReleaseFormat
- func (r *XmlReleaseRelation) GetGenres() []*model.Genre
- func (r *XmlReleaseRelation) GetIdentifiers() []*model.ReleaseIdentifier
- func (r *XmlReleaseRelation) GetLabels() []*model.LabelRelease
- func (r *XmlReleaseRelation) GetRelease() *model.Release
- func (r *XmlReleaseRelation) GetReleaseArtists() []*model.ReleaseArtist
- func (r *XmlReleaseRelation) GetReleaseGenres() []*model.ReleaseGenre
- func (r *XmlReleaseRelation) GetReleaseStyles() []*model.ReleaseStyle
- func (r *XmlReleaseRelation) GetStyles() []*model.Style
- func (r *XmlReleaseRelation) GetTracks() []*model.ReleaseTrack
- func (r *XmlReleaseRelation) GetVideos() []*model.ReleaseVideo
- type XmlTrack
- type XmlVideo
Constants ¶
This section is empty.
Variables ¶
View Source
var NewWriter = newWriter
View Source
var ProjectRootPattern = regexp.MustCompile("^(.*go-discogs).*")
Functions ¶
func ExtractClause ¶
func ExtractClause(i interface{}) clause.OnConflict
func GetProjectRoot ¶ added in v1.1.0
func GetProjectRoot() string
func GetScriptFolderName ¶ added in v1.1.0
func GetScriptFolderName() string
func GetScriptPath ¶ added in v1.1.0
func GetScriptPath() string
func InsertMasterRelations ¶
func InsertSimple ¶
func ReadScript ¶ added in v1.1.0
Types ¶
type Batch ¶
type Step ¶
func GetArtistStep ¶
func GetLabelStep ¶
func GetMasterStep ¶
func GetReleaseStep ¶
GetReleaseStep returns a set of steps in a form of composite notary. This is a convenient func such that reduces code and adds syntactic sugar, but nothing more.
type Transformable ¶
type Transformable interface {
Transform() rxgo.Observable
}
type XmlArtist ¶
type XmlArtist struct {
ID int32 `xml:"id"`
Name *string `xml:"name"`
DataQuality *string `xml:"data_quality"`
Profile *string `xml:"profile"`
RealName *string `xml:"realname"`
}
func (*XmlArtist) Transform ¶
func (a *XmlArtist) Transform() rxgo.Observable
type XmlArtistRelation ¶
type XmlArtistRelation struct {
ID int32 `xml:"id" gorm:"column:id"`
Urls []string `xml:"urls>url"`
NameVars []string `xml:"namevariations>name"`
Aliases []XmlRef `xml:"aliases>name"`
Groups []XmlRef `xml:"groups>name"`
}
func (*XmlArtistRelation) GetAliases ¶
func (a *XmlArtistRelation) GetAliases() []*model.ArtistAlias
func (*XmlArtistRelation) GetGroups ¶
func (a *XmlArtistRelation) GetGroups() []*model.ArtistGroup
func (*XmlArtistRelation) GetNameVars ¶
func (a *XmlArtistRelation) GetNameVars() []*model.ArtistNameVariation
func (*XmlArtistRelation) GetUrls ¶
func (a *XmlArtistRelation) GetUrls() []*model.ArtistURL
type XmlContract ¶
type XmlCreditedArtist ¶
type XmlGenreStyle ¶
type XmlIdentifier ¶
type XmlLabel ¶
type XmlLabel struct {
ID int32 `xml:"id"`
Name *string `xml:"name"`
ContactInfo *string `xml:"contactinfo"`
Profile *string `xml:"profile"`
DataQuality *string `xml:"data_quality"`
}
func (*XmlLabel) Transform ¶
func (l *XmlLabel) Transform() rxgo.Observable
type XmlLabelRelation ¶
type XmlLabelRelation struct {
ID int32 `xml:"id"`
Urls []string `xml:"urls>url"`
ParentLabel *XmlRef `xml:"parentLabel"`
}
func (*XmlLabelRelation) GetParentID ¶
func (l *XmlLabelRelation) GetParentID() *int32
func (*XmlLabelRelation) GetUrls ¶
func (l *XmlLabelRelation) GetUrls() []*model.LabelURL
type XmlLabelRelease ¶
type XmlMaster ¶
type XmlMaster struct {
ID int32 `xml:"id,attr"`
Title *string `xml:"title"`
DataQuality *string `xml:"data_quality"`
Year *int16 `xml:"year"`
}
func (*XmlMaster) Transform ¶
func (m *XmlMaster) Transform() rxgo.Observable
type XmlMasterRelation ¶
type XmlMasterRelation struct {
ID int32 `xml:"id,attr"`
Title *string `xml:"title"`
DataQuality *string `xml:"data_quality"`
Year *int16 `xml:"year"`
Styles []string `xml:"styles>style"`
Genres []string `xml:"genres>genre"`
Artists []int32 `xml:"artists>artist>id"`
Videos []XmlVideo `xml:"videos>video"`
}
func (*XmlMasterRelation) GetGenres ¶ added in v1.1.0
func (m *XmlMasterRelation) GetGenres() []*model.Genre
func (*XmlMasterRelation) GetMaster ¶ added in v1.1.0
func (m *XmlMasterRelation) GetMaster() *model.Master
func (*XmlMasterRelation) GetMasterArtists ¶
func (m *XmlMasterRelation) GetMasterArtists() []*model.MasterArtist
func (*XmlMasterRelation) GetMasterGenres ¶
func (m *XmlMasterRelation) GetMasterGenres() []*model.MasterGenre
func (*XmlMasterRelation) GetMasterStyles ¶
func (m *XmlMasterRelation) GetMasterStyles() []*model.MasterStyle
func (*XmlMasterRelation) GetMasterVideos ¶
func (m *XmlMasterRelation) GetMasterVideos() []*model.MasterVideo
func (*XmlMasterRelation) GetStyles ¶ added in v1.1.0
func (m *XmlMasterRelation) GetStyles() []*model.Style
type XmlRelease ¶
type XmlRelease struct {
ID int32 `xml:"id,attr"`
Title *string `xml:"title"`
Country *string `xml:"country"`
DataQuality *string `xml:"data_quality"`
ListedReleaseDate *string `xml:"released"`
Notes *string `xml:"notes"`
MasterInfo XmlReleaseMasterInfo `xml:"master_id"`
Status *string `xml:"status,attr"`
}
func (*XmlRelease) Transform ¶
func (m *XmlRelease) Transform() rxgo.Observable
type XmlReleaseMasterInfo ¶ added in v1.1.0
type XmlReleaseRelation ¶
type XmlReleaseRelation struct {
ID int32 `xml:"id,attr"`
Title *string `xml:"title"`
Country *string `xml:"country"`
DataQuality *string `xml:"data_quality"`
ListedReleaseDate *string `xml:"released"`
Notes *string `xml:"notes"`
MasterInfo XmlReleaseMasterInfo `xml:"master_id"`
Status *string `xml:"status,attr"`
Artists []int32 `xml:"artists>artist>id"`
Labels []XmlLabelRelease `xml:"labels>label"`
CreditedArtists []XmlCreditedArtist `xml:"extraartists>artist"`
Formats []XmlFormat `xml:"formats>format"`
Genres []string `xml:"genres>genre"`
Styles []string `xml:"styles>style"`
Tracks []XmlTrack `xml:"tracklist>track"`
Identifiers []XmlIdentifier `xml:"identifiers>identifier"`
Videos []XmlVideo `xml:"videos>video"`
Contracts []XmlContract `xml:"companies>company"`
}
func (*XmlReleaseRelation) GetContracts ¶
func (r *XmlReleaseRelation) GetContracts() []*model.ReleaseContract
func (*XmlReleaseRelation) GetCreditedArtists ¶
func (r *XmlReleaseRelation) GetCreditedArtists() []*model.ReleaseCreditedArtist
func (*XmlReleaseRelation) GetFormats ¶
func (r *XmlReleaseRelation) GetFormats() []*model.ReleaseFormat
func (*XmlReleaseRelation) GetGenres ¶ added in v1.1.0
func (r *XmlReleaseRelation) GetGenres() []*model.Genre
func (*XmlReleaseRelation) GetIdentifiers ¶
func (r *XmlReleaseRelation) GetIdentifiers() []*model.ReleaseIdentifier
func (*XmlReleaseRelation) GetLabels ¶
func (r *XmlReleaseRelation) GetLabels() []*model.LabelRelease
func (*XmlReleaseRelation) GetRelease ¶ added in v1.1.0
func (r *XmlReleaseRelation) GetRelease() *model.Release
func (*XmlReleaseRelation) GetReleaseArtists ¶
func (r *XmlReleaseRelation) GetReleaseArtists() []*model.ReleaseArtist
func (*XmlReleaseRelation) GetReleaseGenres ¶
func (r *XmlReleaseRelation) GetReleaseGenres() []*model.ReleaseGenre
func (*XmlReleaseRelation) GetReleaseStyles ¶
func (r *XmlReleaseRelation) GetReleaseStyles() []*model.ReleaseStyle
func (*XmlReleaseRelation) GetStyles ¶ added in v1.1.0
func (r *XmlReleaseRelation) GetStyles() []*model.Style
func (*XmlReleaseRelation) GetTracks ¶
func (r *XmlReleaseRelation) GetTracks() []*model.ReleaseTrack
func (*XmlReleaseRelation) GetVideos ¶
func (r *XmlReleaseRelation) GetVideos() []*model.ReleaseVideo
Click to show internal directories.
Click to hide internal directories.