client

package
v0.0.0-...-9c60dae Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2017 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExtractAndRecord

func ExtractAndRecord(configFile string, file string) error

ExtractAndRecord parses the configuration, extracts metadata, and records a play. easy all in one.

func RecordPlay

func RecordPlay(config *Config, tags *Tags) error

send API request to record a play

Types

type Config

type Config struct {
	Username string
	Password string
	// to api.php
	URL   string
	Debug string
}

hold configuration

func ParseConfig

func ParseConfig(config string) (*Config, error)

parse a song tracker configuration

type Tags

type Tags struct {
	Artist        string
	Album         string
	Title         string
	LengthSeconds int
}

hold metadata/tags from audio file

func ExtractTags

func ExtractTags(file string) (*Tags, error)

extract tags from an audio file

Jump to

Keyboard shortcuts

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