realm

package
v0.0.0-...-f08f74e Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiscoveryMiddleware

func DiscoveryMiddleware() func(next http.Handler) http.Handler

DiscoveryMiddleware checks for the realmID in the request cookie and appends it to the request context Otherwise redirect for realm identification

func FromContext

func FromContext(ctx context.Context) (string, bool)

FromContext returns the realmID stored in ctx, if any

func NewContext

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

NewContext returns a new Context that carries the realmID

Types

This section is empty.

Jump to

Keyboard shortcuts

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