exec

package
v0.0.0-...-dec35dd Latest Latest
Warning

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

Go to latest
Published: Oct 17, 2024 License: Apache-2.0 Imports: 4 Imported by: 6

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContextKey = contextKey("context")
View Source
var ErrorKey = errorKey("error")

Functions

This section is empty.

Types

type Context

type Context struct {
	StartTime                  time.Time
	IgnoreEmptyQueryParameters bool
	StatusCode                 int
	// contains filtered or unexported fields
}

Context represents an execution context

func GetContext

func GetContext(ctx context.Context) *Context

func NewContext

func NewContext() *Context

func (*Context) AppendJob

func (c *Context) AppendJob(job *async.Job)

func (*Context) AsyncCreationTime

func (c *Context) AsyncCreationTime() *time.Time

func (*Context) AsyncElapsed

func (c *Context) AsyncElapsed() time.Duration

func (*Context) AsyncEndTime

func (c *Context) AsyncEndTime() *time.Time

func (*Context) AsyncStatus

func (c *Context) AsyncStatus() string

func (*Context) Elapsed

func (c *Context) Elapsed() time.Duration

func (*Context) EndTime

func (c *Context) EndTime() time.Time

func (*Context) SetValue

func (c *Context) SetValue(key string, value interface{})

func (*Context) Value

func (c *Context) Value(key string) (interface{}, bool)

Jump to

Keyboard shortcuts

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