mpd

package
v0.0.42 Latest Latest
Warning

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

Go to latest
Published: May 30, 2016 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Module = modules.Module{
	Name:           "mpd",
	CreateInstance: CreateInstance,
}

Functions

func CreateInstance

func CreateInstance(name string, config map[string]interface{}) (instance modules.ModuleInstance)

Types

type MPDFormatData

type MPDFormatData struct {
	Artist   string
	Song     string
	Album    string
	Date     string
	Time     string
	Id       string
	File     string
	Title    string
	Composer string
	Disc     string
	Pos      string
	State    string
}

type MPDInstance

type MPDInstance struct {
	// contains filtered or unexported fields
}

func (MPDInstance) Name

func (m MPDInstance) Name() string

func (MPDInstance) RefreshInterval

func (m MPDInstance) RefreshInterval() int

func (MPDInstance) Render

func (m MPDInstance) Render() (item modules.Item)

func (MPDInstance) String

func (m MPDInstance) String() (s string)

type MPDItem

type MPDItem struct {
	Name   string `json:"name"`
	Text   string `json:"full_text"`
	Markup string `json:"markup"`
}

func (MPDItem) Marshal

func (e MPDItem) Marshal() (bytes []byte)

Jump to

Keyboard shortcuts

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