Documentation
¶
Index ¶
- Variables
- func Load()
- func MIGRATE_MAKEDUMPS()
- func MIGRATE_SORTID()
- func PanicHandler(ctx context.Context, w http.ResponseWriter, r *http.Request)
- func WatchFiles() func() error
- type ExprEnv
- func (ExprEnv) Add(a time.Time, b time.Duration) time.Time
- func (ExprEnv) After(a, b time.Time) bool
- func (ExprEnv) AfterDuration(a, b time.Duration) bool
- func (ExprEnv) AfterOrEqual(a, b time.Time) bool
- func (ExprEnv) AfterOrEqualDuration(a, b time.Duration) bool
- func (ExprEnv) Before(a, b time.Time) bool
- func (ExprEnv) BeforeDuration(a, b time.Duration) bool
- func (ExprEnv) BeforeOrEqual(a, b time.Time) bool
- func (ExprEnv) BeforeOrEqualDuration(a, b time.Duration) bool
- func (ExprEnv) Date(s string) time.Time
- func (ExprEnv) Days(n int) time.Duration
- func (ExprEnv) Duration(s string) time.Duration
- func (ExprEnv) Equal(a, b time.Time) bool
- func (ExprEnv) EqualDuration(a, b time.Duration) bool
- func (ExprEnv) Now() time.Time
- func (ExprEnv) Sub(a, b time.Time) time.Duration
- type Library
- func (lib *Library) Albums(org organize) []*albumInfo
- func (lib *Library) Artists(org organize) []*artistInfo
- func (lib *Library) Genres() []*genreInfo
- func (lib *Library) Query(q string) ([]tube.Track, error)
- func (lib *Library) TrackByID(id string) (tube.Track, bool)
- func (lib *Library) Tracks(org organize) []tube.Track
- func (lib *Library) TracksByID(ids []string) []tube.Track
- type PLUIMeta
- type PlaylistCond
- type PlaylistRequest
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Domain = "inter.tube" Deployed time.Time DebugMode = false )
View Source
var (
UseStripe bool
)
Functions ¶
func MIGRATE_MAKEDUMPS ¶
func MIGRATE_MAKEDUMPS()
func MIGRATE_SORTID ¶
func MIGRATE_SORTID()
func PanicHandler ¶
Types ¶
type ExprEnv ¶
type ExprEnv struct {
ID string
SSID tube.SSID
ArtistSSID tube.SSID
Number int
Total int
Disc int
Discs int
Year int
Filename string
Filetype string
Size int
Duration int
Plays int
LastPlay time.Time
Resume float64
Title string
Artist string
Album string
AlbumArtist string
Composer string
Genre string
Comment string
// contains filtered or unexported fields
}
func NewExprEnv ¶
func (ExprEnv) AfterDuration ¶
func (ExprEnv) AfterOrEqual ¶
func (ExprEnv) AfterOrEqualDuration ¶
func (ExprEnv) BeforeDuration ¶
func (ExprEnv) BeforeOrEqual ¶
func (ExprEnv) BeforeOrEqualDuration ¶
func (ExprEnv) EqualDuration ¶
type PLUIMeta ¶
type PLUIMeta struct {
Conds []PlaylistCond
Ver int
}
type PlaylistCond ¶
type PlaylistRequest ¶
type PlaylistRequest struct {
Meta struct {
Name string
SortBy string
SortOrder string
}
Form struct {
All []PlaylistCond
Expr string
}
}
{"meta":{"playlist-name":"a","sort-by":"default","sort-order":"ascending"},"form":{"all":[{"inc":true,"attr":"Artist","op":"$1 == $2","val":"\"a\"","expr":"(Artist == \"a\")"}],"expr":"(Artist == \"a\")"}}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.