tools

package
v0.0.0-...-0087722 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2020 License: BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ClientID = "29341ec7d73e4383b58db00e354dc89c"

TokenHUB constanta information

Functions

func Auth

func Auth() spotify.Authenticator

func Contains

func Contains(all []string, scalar string) bool

func Cors

func Cors(h http.Handler) http.Handler

Cors middleware

func GetLocalIP

func GetLocalIP() string

func HttpHeaderMiddleware

func HttpHeaderMiddleware(next *handler.Handler) http.Handler

func IsProd

func IsProd() bool

IsProd TODO: NEEDS COMMENT INFO

func MergeGraphQlQuery

func MergeGraphQlQuery(a graphql.Fields, b graphql.Fields) graphql.Fields

func SpotifyClientFromContext

func SpotifyClientFromContext(ctx context.Context) (spotify.Client, error)

func SpotifyPublicClient

func SpotifyPublicClient() (spotify.Client, error)

func ToUnderScore

func ToUnderScore(name string) string

Camelcase to underscore style.

Types

type Key

type Key string

Jump to

Keyboard shortcuts

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