auth

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jun 26, 2025 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Overview

* @Author: hugo * @Date: 2024-04-28 16:51 * @LastEditors: hugo * @LastEditTime: 2024-09-10 16:02 * @FilePath: \gotox\webx\middleware\auth\auth.go * @Description: * * Copyright (c) 2024 by hugo, All Rights Reserved.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NoAuth

func NoAuth() gin.HandlerFunc

func SetLogger

func SetLogger(l logx.Logger)

// 自定义的logger,建议实例化赋予

Types

type AUTH

type AUTH string

type Auth

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

func NewBuilder

func NewBuilder(list AuthPair) *Auth

func (*Auth) Build

func (b *Auth) Build() gin.HandlerFunc

type AuthPair

type AuthPair map[AUTH]NAME

type NAME

type NAME string

Jump to

Keyboard shortcuts

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