requestTask

package
v0.0.0-...-fd23dd1 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2019 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, r *web.Request, task func(ctx context.Context, r *web.Request))

Do runs a background task in the current request scope

func TryDo

func TryDo(ctx context.Context, r *web.Request, task func(ctx context.Context, r *web.Request)) error

TryDo tries to schedule an async task in the background

Types

type Module

type Module struct{}

func (*Module) Configure

func (m *Module) Configure(injector *dingo.Injector)

Jump to

Keyboard shortcuts

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