operation

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsCreate

func IsCreate(ctx context.Context) bool

IsCreate returns whether or not this is a create operation.

func IsUpdate

func IsUpdate(ctx context.Context) bool

IsUpdate returns whether or not this is an update operation.

func JoinContext

func JoinContext(left, right context.Context) context.Context

JoinContext returns a new context that contains the operation from the right or left side of the context, with the right taking precedence. This function is thread-safe.

func MarkCreate

func MarkCreate(ctx context.Context)

MarkCreate indicates to the call stack this is a create operation.

func MarkUpdate

func MarkUpdate(ctx context.Context)

MarkUpdate indicates to the call stack this is an update operation. This will be a no-op if MarkCreate was already called.

func WithContext

func WithContext(parent context.Context) context.Context

WithContext returns a new operation context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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