userid

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 1 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(ctx context.Context) string

Get the user ID from the context.

func Init

func Init(ctx context.Context) context.Context

Init sets up an empty user ID in the context.

func Set

func Set(ctx context.Context, uid string) context.Context

Set the user ID in the context. If userid.Init() has been called previously, this sets the existing user ID in the context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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