model

package
v0.0.0-...-b8661fc Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Maker

type Maker struct {
	Name string `json:"name" datastore:"name"`
}

type Melody

type Melody struct {
	Melody string `json:"melody" datastore:"melody"`
}

type Song

type Song struct {
	Key       *datastore.Key `json:"-" datastore:"__key__"`
	ID        string         `json:"id" datastore:"-"`
	Created   time.Time      `json:"dateCreated,omitempty" datastore:"dateCreated"`
	Updated   time.Time      `json:"lastUpdated,omitempty" datastore:"lastUpdated"`
	Creator   string         `json:"creator,omitempty" datastore:"creator,noindex"`
	Modifier  string         `json:"modifier,omitempty" datastore:"modifier,noindex"`
	Title     string         `json:"title" datastore:"title"`
	Verses    []Verse        `json:"verses" datastore:"verses"`
	Melody    Melody         `json:"melody,omitempty" datastore:"melody"`
	Arrangers []Maker        `json:"arrangers,omitempty" datastore:"arrangers"`
	Composers []Maker        `json:"composers,omitempty" datastore:"composers"`
	Lyricists []Maker        `json:"lyricists,omitempty" datastore:"lyricists"`
	ExtraInfo string         `json:"extraInfo,omitempty" datastore:"extraInfo,noindex"`
	Tags      []Tag          `json:"tags,omitempty" datastore:"tags"`
	Deleted   bool           `json:"deleted" datastore:"deleted"`
}

func (*Song) Enrich

func (s *Song) Enrich()

Enrich song with some basic data if needed

type Tag

type Tag struct {
	Tag string `json:"tag" datastore:"tag"`
}

type Verse

type Verse struct {
	Lyrics string `json:"lyrics" datastore:"lyrics,noindex"`
}

Jump to

Keyboard shortcuts

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