shared

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTransactionID

func GetTransactionID(ctx context.Context) (string, bool)

GetTransactionID retrieves transaction ID from context

func GetUserID

func GetUserID(ctx context.Context) (string, bool)

GetUserID retrieves user ID from context

func WithTransactionID

func WithTransactionID(ctx context.Context, transactionID ...string) context.Context

Adds new transactionId to the context if one is not present

func WithUserID

func WithUserID(ctx context.Context, userID ...string) context.Context

Adds new userID to the context if one is not present

Types

This section is empty.

Jump to

Keyboard shortcuts

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