contextvalue

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Converter

func Converter(ctx sync.Context) converter.Converter

func GetRegistry added in v1.0.0

func GetRegistry(ctx sync.Context) *registry.Registry

func IsSingleWorkerMode added in v1.0.0

func IsSingleWorkerMode(ctx sync.Context) bool

IsSingleWorkerMode checks if the context is in single worker mode.

func WithConverter

func WithConverter(ctx sync.Context, converter converter.Converter) sync.Context

func WithRegistry added in v1.0.0

func WithRegistry(ctx sync.Context, r *registry.Registry) sync.Context

func WithSingleWorkerMode added in v1.0.0

func WithSingleWorkerMode(ctx sync.Context) sync.Context

WithSingleWorkerMode sets the single worker mode flag in the context. When this flag is set, activities and workflows will be automatically registered when needed.

Types

type PropagatorsKey

type PropagatorsKey int
var PropagatorsCtxKey PropagatorsKey

Jump to

Keyboard shortcuts

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