MCPcopy Create free account
hub / github.com/dinofizz/diskplayer / NewDiskplayerServer

Function NewDiskplayerServer

server.go:31–37  ·  view source on GitHub ↗

NewDiskplayerServer returns a new DiskplayerServer instance. The arguments are required if the server instance is to be used to obtain a new Spotify auth token.

(a *spotify.Authenticator, ch chan *oauth2.Token)

Source from the content-addressed store, hash-verified

29// NewDiskplayerServer returns a new DiskplayerServer instance.
30// The arguments are required if the server instance is to be used to obtain a new Spotify auth token.
31func NewDiskplayerServer(a *spotify.Authenticator, ch chan *oauth2.Token) *RealDiskplayerServer {
32 h := CallbackHandler{
33 ch: ch,
34 auth: a,
35 }
36 return &RealDiskplayerServer{cbh: h}
37}
38
39type RealDiskplayerServer struct {
40 cbh CallbackHandler

Callers 4

mainFunction · 0.92
mainFunction · 0.92
TestNewDiskplayerServerFunction · 0.85

Calls

no outgoing calls