userid

package
v0.26.1 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 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, bool)

FromContext returns the user ID from the context if it exists and is not empty.

func NewContext

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

NewContext returns a new context with the given user ID added to the context. TODO(hs): this doesn't seem to be used / set currently; implement when/where it makes sense.

Types

This section is empty.

Jump to

Keyboard shortcuts

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