user

package
v0.0.0-...-31393e3 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsAuthenticated

func IsAuthenticated(ctx *gin.Context)

IsAuthenticated is a middleware that checks if the user has already been authenticated previously.

func New

func New(v *viper.Viper) (adapterx.Server, func(), error)

func NewServer

func NewServer(injector *Injector, server *httpx.Server) adapterx.Server

NewServer is to create a new restful adapter

Types

type Injector

type Injector struct {
	C     *configx.Configuration
	A     *configx.Application
	OTelx *otelx.SDK

	Authx *authx.Authx
}

Injector is the user injector.

Directories

Path Synopsis
web

Jump to

Keyboard shortcuts

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