user

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FromContext

func FromContext(ctx context.Context) string

FromContext extracts user ID from context

func IsAgent

func IsAgent(ctx context.Context) bool

IsAgent checks if the context indicates an agent operation

func WithAgent

func WithAgent(ctx context.Context) context.Context

WithAgent marks the context as coming from an agent

func WithUserID

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

WithUserID sets user ID in context

Types

This section is empty.

Jump to

Keyboard shortcuts

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