gincontext

package
v0.1.4 Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package contextservices The package provides functions to get and work with ror contexts

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetRorContextFromGinContext

func GetRorContextFromGinContext(c *gin.Context) (context.Context, context.CancelFunc)

GetRorContextFromGinContext Function creates ror context from gin context, identity is added to the context

func GetUserFromGinContext

func GetUserFromGinContext(c *gin.Context) (*identitymodels.User, error)

GetUserFromGinContext Function extracts the user from the gin context

!!! Should only be used in audit middleware !!!

Types

This section is empty.

Jump to

Keyboard shortcuts

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