kontext

package
v0.0.0-...-cc36037 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2018 License: Unlicense Imports: 2 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MustGetUser

func MustGetUser(ctx context.Context) model.User

MustGetUser fetches the logged in user from the current context. Panics if there is no user present

func WithUser

func WithUser(parent context.Context, user model.User) context.Context

WithUser returns a new context with the given user added.

Types

This section is empty.

Jump to

Keyboard shortcuts

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