mw

package
v1.8.4 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetToken

func SetToken(c *gin.Context, userID string, userType int32)

Types

type MW

type MW struct {
	// contains filtered or unexported fields
}

func New

func New(client admin.AdminClient) *MW

func (*MW) CheckAdmin

func (o *MW) CheckAdmin(c *gin.Context)

func (*MW) CheckAdminOrNil

func (o *MW) CheckAdminOrNil(c *gin.Context)

func (*MW) CheckToken

func (o *MW) CheckToken(c *gin.Context)

func (*MW) CheckUser

func (o *MW) CheckUser(c *gin.Context)

Jump to

Keyboard shortcuts

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