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)
| 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. |
| 31 | func 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 | |
| 39 | type RealDiskplayerServer struct { |
| 40 | cbh CallbackHandler |
no outgoing calls