Documentation ¶
Index ¶
- func CheckNoUser(ctx context.Context) error
- func CheckUserMatches(ctx context.Context, id string) error
- func DoughnutMiddleware(next http.Handler) http.Handler
- func EnforcePassword(next http.Handler) http.Handler
- func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField, prefix string) (preloads []string)
- func GetPreloadString(prefix, name string) string
- func GetPreloads(ctx context.Context) []string
- func HasRequestedField(ctx context.Context, field string) bool
- type AlbumCombinationConversionMap
- type AlbumConversionCounter
- type AlbumConversionMap
- type ArtistConversionCounter
- type ArtistConversionMap
- type ContextKey
- type ConversionMap
- type ConversionMapItem
- type Date
- type RateYourMusicAlbumConversionMap
- type TagConversionMap
- type TrackConversionCounter
- type TrackConversionMap
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckNoUser ¶
func GetNestedPreloads ¶
func GetNestedPreloads(ctx *graphql.OperationContext, fields []graphql.CollectedField, prefix string) (preloads []string)
func GetPreloadString ¶
func GetPreloads ¶
Types ¶
type AlbumCombinationConversionMap ¶
type AlbumCombinationConversionMap struct{ *ConversionMap }
func CreateAlbumCombinationConversionMap ¶
func CreateAlbumCombinationConversionMap() AlbumCombinationConversionMap
func (AlbumCombinationConversionMap) Append ¶
func (lm AlbumCombinationConversionMap) Append(artistName, albumName string, album interface{})
type AlbumConversionCounter ¶
type AlbumConversionCounter struct{ *ConversionMap }
func CreateAlbumConversionCounter ¶
func CreateAlbumConversionCounter() AlbumConversionCounter
func (AlbumConversionCounter) Get ¶
func (lcm AlbumConversionCounter) Get(artistName, albumName string) (int32, string, string)
func (AlbumConversionCounter) Increment ¶
func (lcm AlbumConversionCounter) Increment(artistName, albumName string)
type AlbumConversionMap ¶
type AlbumConversionMap struct{ *ConversionMap }
func CreateAlbumConversionMap ¶
func CreateAlbumConversionMap() AlbumConversionMap
func (AlbumConversionMap) Merge ¶
func (lm AlbumConversionMap) Merge(target AlbumConversionMap)
type ArtistConversionCounter ¶
type ArtistConversionCounter struct{ *ConversionMap }
func CreateArtistConversionCounter ¶
func CreateArtistConversionCounter() ArtistConversionCounter
func (ArtistConversionCounter) Get ¶
func (acm ArtistConversionCounter) Get(artistName string) (int32, string)
func (ArtistConversionCounter) Increment ¶
func (acm ArtistConversionCounter) Increment(artistName string)
func (ArtistConversionCounter) Set ¶
func (acm ArtistConversionCounter) Set(artistName string, value int32)
type ArtistConversionMap ¶
type ArtistConversionMap struct{ *ConversionMap }
func CreateArtistConversionMap ¶
func CreateArtistConversionMap() ArtistConversionMap
func (ArtistConversionMap) Merge ¶
func (am ArtistConversionMap) Merge(target ArtistConversionMap)
type ContextKey ¶
type ContextKey string
const ContextDiscordIDKey ContextKey = "doughnutDiscordID"
const ContextIsGowonKey ContextKey = "isGowon"
type ConversionMap ¶
type ConversionMap struct {
// contains filtered or unexported fields
}
func (ConversionMap) GetMap ¶
func (cm ConversionMap) GetMap() map[string]ConversionMapItem
type ConversionMapItem ¶
type ConversionMapItem struct { Key string Value interface{} }
type RateYourMusicAlbumConversionMap ¶
type RateYourMusicAlbumConversionMap struct{ *ConversionMap }
func CreateRateYourMusicAlbumConversionMap ¶
func CreateRateYourMusicAlbumConversionMap() RateYourMusicAlbumConversionMap
func (RateYourMusicAlbumConversionMap) Get ¶
func (rlm RateYourMusicAlbumConversionMap) Get(rymsID string) (db.RateYourMusicAlbum, string, bool)
func (RateYourMusicAlbumConversionMap) Set ¶
func (rlm RateYourMusicAlbumConversionMap) Set(rymsID string, album db.RateYourMusicAlbum)
type TagConversionMap ¶
type TagConversionMap struct{ *ConversionMap }
func CreateTagConversionMap ¶
func CreateTagConversionMap() TagConversionMap
type TrackConversionCounter ¶
type TrackConversionCounter struct{ *ConversionMap }
func CreateTrackConversionCounter ¶
func CreateTrackConversionCounter() TrackConversionCounter
func (TrackConversionCounter) Increment ¶
func (tcm TrackConversionCounter) Increment(artistName, albumName, trackName string)
type TrackConversionMap ¶
type TrackConversionMap struct{ *ConversionMap }
func CreateTrackConversionMap ¶
func CreateTrackConversionMap() TrackConversionMap
func (TrackConversionMap) Merge ¶
func (tm TrackConversionMap) Merge(target TrackConversionMap)
Click to show internal directories.
Click to hide internal directories.