context

package
v0.0.0-...-0b5a9a0 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2024 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 {
	*gin.Context
	// contains filtered or unexported fields
}

Context is a wrapper of gin.Context that contains authentication information

func New

func New() *Context

New returns a new Context instance

func NewContextFromGin

func NewContextFromGin(c *gin.Context) *Context

NewContextFromGin returns a new Context instance from gin.Context

func (*Context) GetAccount

func (c *Context) GetAccount() *model.Account

func (*Context) UserIsLogged

func (c *Context) UserIsLogged() bool

UserIsLogged returns a boolean indicating if the user is authenticated or not

Jump to

Keyboard shortcuts

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