contextutil

package
v0.0.0-...-6b11828 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2024 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckOnTransactional

func CheckOnTransactional(ctx context.Context) bool

func GetRequestId

func GetRequestId(ctx context.Context) string

func GetTransactional

func GetTransactional(ctx context.Context) (transactional.Transactional, bool)

func NewContext

func NewContext() context.Context

func NewContextWithGin

func NewContextWithGin(c *gin.Context) context.Context

func NewContextWithParent

func NewContextWithParent(parent context.Context) context.Context

func NewContextWithTimeout

func NewContextWithTimeout(parent context.Context, timeout time.Duration) (context.Context, context2.CancelFunc)

func NewContextWithValue

func NewContextWithValue(parent context.Context, key string, value any) context.Context

func SetTransactional

func SetTransactional(ctx context.Context, transactional transactional.Transactional) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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