standard

package
v0.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 2018 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewStandardStrategy

func NewStandardStrategy(batch dataloader.BatchFunction, opts Options) func(int) dataloader.Strategy

NewStandardStrategy returns a new instance of the standard strategy. The Standard Strategy, calls the batch function once when the keys array reaches capacity then subsequent calls to `Load()` will call the batch function with the individual keys.

Types

type Options

type Options struct {
	Timeout time.Duration
}

Options contains the strategy configuration

Jump to

Keyboard shortcuts

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