requestTask

package
v2.3.1+incompatible Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2018 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