Versions in this module Expand all Collapse all v0 v0.12.1 Aug 11, 2020 Changes in this version + func LoaderMiddleware(next http.Handler) http.Handler + func NewExecutableSchema(cfg Config) graphql.ExecutableSchema + type Address struct + Country string + ID int + Street string + type AddressLoader struct + func NewAddressLoader(config AddressLoaderConfig) *AddressLoader + func (l *AddressLoader) Clear(key int) + func (l *AddressLoader) Load(key int) (*Address, error) + func (l *AddressLoader) LoadAll(keys []int) ([]*Address, []error) + func (l *AddressLoader) LoadAllThunk(keys []int) func() ([]*Address, []error) + func (l *AddressLoader) LoadThunk(key int) func() (*Address, error) + func (l *AddressLoader) Prime(key int, value *Address) bool + type AddressLoaderConfig struct + Fetch func(keys []int) ([]*Address, []error) + MaxBatch int + Wait time.Duration + type ComplexityRoot struct + Address struct{ ... } + Customer struct{ ... } + Item struct{ ... } + Order struct{ ... } + Query struct{ ... } + type Config struct + Complexity ComplexityRoot + Directives DirectiveRoot + Resolvers ResolverRoot + type Customer struct + AddressID int + ID int + Name string + type CustomerResolver interface + Address func(ctx context.Context, obj *Customer) (*Address, error) + Orders func(ctx context.Context, obj *Customer) ([]*Order, error) + type DirectiveRoot struct + type Item struct + Name string + type ItemSliceLoader struct + func NewItemSliceLoader(config ItemSliceLoaderConfig) *ItemSliceLoader + func (l *ItemSliceLoader) Clear(key int) + func (l *ItemSliceLoader) Load(key int) ([]*Item, error) + func (l *ItemSliceLoader) LoadAll(keys []int) ([][]*Item, []error) + func (l *ItemSliceLoader) LoadAllThunk(keys []int) func() ([][]*Item, []error) + func (l *ItemSliceLoader) LoadThunk(key int) func() ([]*Item, error) + func (l *ItemSliceLoader) Prime(key int, value []*Item) bool + type ItemSliceLoaderConfig struct + Fetch func(keys []int) ([][]*Item, []error) + MaxBatch int + Wait time.Duration + type Order struct + Amount float64 + Date time.Time + ID int + type OrderResolver interface + Items func(ctx context.Context, obj *Order) ([]*Item, error) + type OrderSliceLoader struct + func NewOrderSliceLoader(config OrderSliceLoaderConfig) *OrderSliceLoader + func (l *OrderSliceLoader) Clear(key int) + func (l *OrderSliceLoader) Load(key int) ([]*Order, error) + func (l *OrderSliceLoader) LoadAll(keys []int) ([][]*Order, []error) + func (l *OrderSliceLoader) LoadAllThunk(keys []int) func() ([][]*Order, []error) + func (l *OrderSliceLoader) LoadThunk(key int) func() ([]*Order, error) + func (l *OrderSliceLoader) Prime(key int, value []*Order) bool + type OrderSliceLoaderConfig struct + Fetch func(keys []int) ([][]*Order, []error) + MaxBatch int + Wait time.Duration + type QueryResolver interface + Customers func(ctx context.Context) ([]*Customer, error) + Torture1d func(ctx context.Context, customerIds []int) ([]*Customer, error) + Torture2d func(ctx context.Context, customerIds [][]int) ([][]*Customer, error) + type Resolver struct + func (r *Resolver) Customer() CustomerResolver + func (r *Resolver) Order() OrderResolver + func (r *Resolver) Query() QueryResolver + type ResolverRoot interface + Customer func() CustomerResolver + Order func() OrderResolver + Query func() QueryResolver