validator

package
v0.0.0-...-6677412 Latest Latest
Warning

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

Go to latest
Published: Jul 9, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const OrgIDKey ctxKeyOrganisationID = 0

SpaceIDKey is the key that holds the unique space ID in a request context.

View Source
const SpaceIDKey ctxKeySpaceID = 0

SpaceIDKey is the key that holds the unique space ID in a request context.

Variables

This section is empty.

Functions

func CheckOrganisation

func CheckOrganisation() func(http.Handler) http.Handler

CheckOrganisation - to get org from space in header

func CheckSpace

func CheckSpace() func(http.Handler) http.Handler

CheckSpace - to check Space in header

func GetOrganisation

func GetOrganisation(ctx context.Context) (int, error)

GetOrganisation return space ID

func GetSpace

func GetSpace(ctx context.Context) (uint, error)

GetSpace return space ID

func Tracing

func Tracing() func(http.Handler) http.Handler

Tracing incoming req

Types

This section is empty.

Jump to

Keyboard shortcuts

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