requesttask

package
v3.0.0-beta.2 Latest Latest
Warning

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

Go to latest
Published: Apr 4, 2019 License: OSL-3.0 Imports: 7 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{}

Module registers the requestTask request filter

func (*Module) Configure

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

Configure dependency injection

Jump to

Keyboard shortcuts

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