Documentation ¶
Index ¶
- Variables
- func Auth() spotify.Authenticator
- func Contains(all []string, scalar string) bool
- func Cors(h http.Handler) http.Handler
- func GetLocalIP() string
- func HttpHeaderMiddleware(next *handler.Handler) http.Handler
- func IsProd() bool
- func MergeGraphQlQuery(a graphql.Fields, b graphql.Fields) graphql.Fields
- func SpotifyClientFromContext(ctx context.Context) (spotify.Client, error)
- func SpotifyPublicClient() (spotify.Client, error)
- func ToUnderScore(name string) string
- type Key
Constants ¶
This section is empty.
Variables ¶
View Source
var ClientID = "29341ec7d73e4383b58db00e354dc89c"
View Source
var ( Scopes = []string{ spotify.ScopeImageUpload, spotify.ScopePlaylistReadPrivate, spotify.ScopePlaylistModifyPublic, spotify.ScopePlaylistModifyPrivate, spotify.ScopePlaylistReadCollaborative, spotify.ScopeUserFollowModify, spotify.ScopeUserFollowRead, spotify.ScopeUserLibraryModify, spotify.ScopeUserLibraryRead, spotify.ScopeUserReadPrivate, spotify.ScopeUserReadEmail, spotify.ScopeUserReadCurrentlyPlaying, spotify.ScopeUserReadPlaybackState, spotify.ScopeUserModifyPlaybackState, spotify.ScopeUserReadRecentlyPlayed, } )
TokenHUB constanta information
Functions ¶
func Auth ¶
func Auth() spotify.Authenticator
func GetLocalIP ¶
func GetLocalIP() string
func SpotifyPublicClient ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.