feedback

package
v0.0.0-...-57178c3 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: ISC Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Recordings internal.Set

Recordings is a set of RecordingID's that indicate whether the data is available for listening

Functions

func DecodePreference

func DecodePreference(encodedPref string, kind models.LabelKind) ([]string, error)

DecodePreference decodes the preference

func Load

func Load() error

Load scans the configured directory for available recordings

Types

type Feedback

type Feedback struct {
	Instrument string           `json:"instrument"`
	Kind       models.LabelKind `json:"kind"`
	Recordings []Recording      `json:"recordings"`
}

Feedback represents a list of recordings feedback is requested for

func GetRecordings

func GetRecordings(db *gorm.DB, accountID string, instruments []string, genres []string) (Feedback, error)

GetRecordings retrieves

type Recording

type Recording struct {
	RecordingID string `json:"recording_id"`
	Artist      string `json:"artist"`
	Title       string `json:"title"`
	Opener      int    `json:"opener"`
	Closer      int    `json:"closer"`
}

Recording contains information needed to request feedback

Jump to

Keyboard shortcuts

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