requestcontext

package
v0.0.0-...-f0f63f4 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct{}

Context is a request context handler.

func New

func New() Context

New returns a new context handler.

func (Context) SetUserID

func (ctx Context) SetUserID(r *http.Request, val string)

SetUserID will set the user ID in the context.

func (Context) UserID

func (ctx Context) UserID(r *http.Request) (string, bool)

UserID gets the user ID from the context.

Jump to

Keyboard shortcuts

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