plans

package
v0.0.0-...-6217932 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2016 License: GPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var IncomingPlan = task_api.NewPlan(
	"incoming",
	"timbre_analysis",
	map[string][]string{
		"timbre_analysis": []string{"check_metadata", "check_metadata"},
		"check_metadata":  []string{"activate", "deactivate"},
		"encode_mp3":      []string{"", ""},
		"activate":        []string{"encode_mp3", ""},
		"deactivate":      []string{"", ""},
	})

IncomingPlan is executed whenever we receive a new song.

View Source
var KnownPlans = map[string]*task_api.Plan{}

KnownPlans keeps a registry of all available plans.

View Source
var ReanalyzePlan = task_api.NewPlan(
	"reanalyze",
	"timbre_analysis",
	map[string][]string{
		"timbre_analysis": []string{"", ""},
	})

ReanalyzePlan is used to extract acoustic data from all songs that miss it.

View Source
var ReencodePlan = task_api.NewPlan(
	"reencode",
	"encode_mp3",
	map[string][]string{
		"encode_mp3": []string{"", ""},
	})

ReencodePlan is used to trigger encoding, in case we missed something.

Functions

func RegisterPlan

func RegisterPlan(plan *task_api.Plan)

Types

This section is empty.

Jump to

Keyboard shortcuts

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