drive

package
Version: v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2016 License: ISC Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(clientID, clientSecret, redirect string)

func New

func New(params []string, token *oauth2.Token) (protocol.Instance, error)

Types

type Drive

type Drive struct {
	Token *oauth2.Token
	Name  string
	Files map[string]*drive.File
	Songs protocol.SongList
}

func (*Drive) GetSong

func (d *Drive) GetSong(id codec.ID) (codec.Song, error)

func (*Drive) Info

func (d *Drive) Info(id codec.ID) (*codec.SongInfo, error)

func (*Drive) Key

func (d *Drive) Key() string

func (*Drive) List

func (d *Drive) List() (protocol.SongList, error)

func (*Drive) Refresh

func (d *Drive) Refresh() (protocol.SongList, error)

Source Files

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
t or T : Toggle theme light dark auto
y or Y : Canonical URL