dbhandler

package
v0.0.0-...-0926b0c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PartyDB

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

func NewPartyDB

func NewPartyDB() *PartyDB

func (*PartyDB) CreateParty

func (p *PartyDB) CreateParty(name string, host string, oath int64) (int, error)

func (*PartyDB) CreateQueue

func (p *PartyDB) CreateQueue(partyID int, playlistlnk string) error
func (p *PartyDB) GetInvitelink(partyID int) (string, error)

func (*PartyDB) GetPartyID

func (p *PartyDB) GetPartyID(invitecode string) (int, error)

func (*PartyDB) GetPlaylist

func (p *PartyDB) GetPlaylist(partyID int) (string, error)

func (*PartyDB) Getoath

func (p *PartyDB) Getoath(partyID int) (*oauth2.Token, error)

func (*PartyDB) SaveToken

func (p *PartyDB) SaveToken(tok *oauth2.Token) (int64, error)

tok.AccessToken = os.Getenv("SPOTIFY_TOKEN") tok.RefreshToken tok.Expiry

Jump to

Keyboard shortcuts

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