generated

package
v0.0.0-...-61aba5b Latest Latest
Warning

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

Go to latest
Published: Jan 23, 2022 License: GPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewExecutableSchema

func NewExecutableSchema(cfg Config) graphql.ExecutableSchema

NewExecutableSchema creates an ExecutableSchema from the ResolverRoot interface.

Types

type AlbumArtistResolver

type AlbumArtistResolver interface {
	Albums(ctx context.Context, obj *gqlmodel.AlbumArtist) ([]*gqlmodel.Album, error)
	AlbumPagination(ctx context.Context, obj *gqlmodel.AlbumArtist, limit int, offset *int) (*gqlmodel.AlbumPagination, error)
	TrackPagination(ctx context.Context, obj *gqlmodel.AlbumArtist, limit int, offset *int) (*gqlmodel.TrackPagination, error)
}

type AlbumResolver

type AlbumResolver interface {
	AlbumArtist(ctx context.Context, obj *gqlmodel.Album) (*gqlmodel.AlbumArtist, error)
	Tracks(ctx context.Context, obj *gqlmodel.Album) ([]*gqlmodel.Track, error)
}

type ComplexityRoot

type ComplexityRoot struct {
	Album struct {
		AlbumArtist   func(childComplexity int) int
		AlbumArtistID func(childComplexity int) int
		DiskNo        func(childComplexity int) int
		DiskTotal     func(childComplexity int) int
		ID            func(childComplexity int) int
		Name          func(childComplexity int) int
		Tracks        func(childComplexity int) int
	}

	AlbumArtist struct {
		AlbumPagination func(childComplexity int, limit int, offset *int) int
		Albums          func(childComplexity int) int
		ID              func(childComplexity int) int
		Name            func(childComplexity int) int
		TrackPagination func(childComplexity int, limit int, offset *int) int
	}

	AlbumArtistEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	AlbumArtistPagination struct {
		Edges    func(childComplexity int) int
		Nodes    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	AlbumEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	AlbumPagination struct {
		Edges    func(childComplexity int) int
		Nodes    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	Genre struct {
		ID              func(childComplexity int) int
		Name            func(childComplexity int) int
		TrackPagination func(childComplexity int, limit int, offset *int) int
	}

	GenreEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	GenrePagination struct {
		Edges    func(childComplexity int) int
		Nodes    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}

	PageInfo struct {
		EndCursor       func(childComplexity int) int
		HasNextPage     func(childComplexity int) int
		HasPreviousPage func(childComplexity int) int
		StartCursor     func(childComplexity int) int
	}

	PaginationInfo struct {
		Count            func(childComplexity int) int
		HasNextPage      func(childComplexity int) int
		HasPreviousPage  func(childComplexity int) int
		Limit            func(childComplexity int) int
		Offset           func(childComplexity int) int
		Page             func(childComplexity int) int
		PaginationLength func(childComplexity int) int
		TotalCount       func(childComplexity int) int
	}

	Query struct {
		Album        func(childComplexity int, id string) int
		AlbumArtist  func(childComplexity int, id string) int
		AlbumArtists func(childComplexity int, limit int, offset *int) int
		Albums       func(childComplexity int, limit int, offset *int, albumID *string, albumArtistID *string) int
		Genre        func(childComplexity int, id string) int
		Genres       func(childComplexity int, limit int, offset *int) int
		Track        func(childComplexity int, id string) int
		Tracks       func(childComplexity int, limit int, offset *int, trackID *string, albumID *string, albumArtist *string, genreID *string) int
	}

	Track struct {
		Album         func(childComplexity int) int
		AlbumArtist   func(childComplexity int) int
		AlbumArtistID func(childComplexity int) int
		AlbumID       func(childComplexity int) int
		Artist        func(childComplexity int) int
		Comment       func(childComplexity int) int
		Composer      func(childComplexity int) int
		DownloadURL   func(childComplexity int) int
		Genre         func(childComplexity int) int
		GenreID       func(childComplexity int) int
		ID            func(childComplexity int) int
		Lyrics        func(childComplexity int) int
		Title         func(childComplexity int) int
		TrackNo       func(childComplexity int) int
		URL           func(childComplexity int) int
		Year          func(childComplexity int) int
	}

	TrackEdge struct {
		Cursor func(childComplexity int) int
		Node   func(childComplexity int) int
	}

	TrackPagination struct {
		Edges    func(childComplexity int) int
		Nodes    func(childComplexity int) int
		PageInfo func(childComplexity int) int
	}
}

type Config

type Config struct {
	Resolvers  ResolverRoot
	Directives DirectiveRoot
	Complexity ComplexityRoot
}

type DirectiveRoot

type DirectiveRoot struct {
}

type GenreResolver

type GenreResolver interface {
	TrackPagination(ctx context.Context, obj *gqlmodel.Genre, limit int, offset *int) (*gqlmodel.TrackPagination, error)
}

type QueryResolver

type QueryResolver interface {
	Track(ctx context.Context, id string) (*gqlmodel.Track, error)
	Tracks(ctx context.Context, limit int, offset *int, trackID *string, albumID *string, albumArtist *string, genreID *string) (*gqlmodel.TrackPagination, error)
	Album(ctx context.Context, id string) (*gqlmodel.Album, error)
	Albums(ctx context.Context, limit int, offset *int, albumID *string, albumArtistID *string) (*gqlmodel.AlbumPagination, error)
	AlbumArtist(ctx context.Context, id string) (*gqlmodel.AlbumArtist, error)
	AlbumArtists(ctx context.Context, limit int, offset *int) (*gqlmodel.AlbumArtistPagination, error)
	Genre(ctx context.Context, id string) (*gqlmodel.Genre, error)
	Genres(ctx context.Context, limit int, offset *int) (*gqlmodel.GenrePagination, error)
}

type ResolverRoot

type ResolverRoot interface {
	Album() AlbumResolver
	AlbumArtist() AlbumArtistResolver
	Genre() GenreResolver
	Query() QueryResolver
	Track() TrackResolver
}

type TrackResolver

type TrackResolver interface {
	Album(ctx context.Context, obj *gqlmodel.Track) (*gqlmodel.Album, error)

	Genre(ctx context.Context, obj *gqlmodel.Track) (*gqlmodel.Genre, error)

	AlbumArtist(ctx context.Context, obj *gqlmodel.Track) (*gqlmodel.AlbumArtist, error)
}

Jump to

Keyboard shortcuts

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