Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewStandardStrategy ¶
func NewStandardStrategy(opts ...Option) dataloader.StrategyFunction
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 Option ¶ added in v0.4.0
type Option func(*options)
Option accepts the dataloader and sets an option on it.
func WithLogger ¶ added in v0.5.0
WithLogger configures the logger for the strategy. Default is a no op logger.
func WithTimeout ¶ added in v0.4.0
WithTimeout sets the timeout value for the strategy
Click to show internal directories.
Click to hide internal directories.