requesttask

package
v3.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 28, 2021 License: MIT 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