loader

package
v0.1.82 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Add

func Add(function func(ctx context.Context, args interface{}) (interface{}, error), priority int)

Add new loader function to loader stack, functions will sort and run base on priority or their add order if priority was zero

func Flush

func Flush()

Flush remove all loader functions

func Run

func Run(ctx context.Context, args interface{}) error

Run loader with given args that will pass to each loader function args can be modify by each loader function and modified version will pass to next one

Types

This section is empty.

Jump to

Keyboard shortcuts

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