context

package
v0.0.0-...-926d7b1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2024 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func User

func User(ctx context.Context) *models.User

User accepts a context and returns the associated user.

func WithUser

func WithUser(ctx context.Context, user *models.User) context.Context

WithUser accepts an existing context and a user and returns a new context with that user set as a value.

Types

This section is empty.

Jump to

Keyboard shortcuts

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