requestcontext

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2022 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AccessControlContext

type AccessControlContext struct {
	GlobPatterns map[string]bool
	IsAdmin      bool
	Username     string
}

AccessControlContext context passed down to http.Handlers.

type Key

type Key int

func GetContextKey

func GetContextKey() *Key

pointer needed for use in context.WithValue.

Jump to

Keyboard shortcuts

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