auth

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Jun 15, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func VerifyAdmin

func VerifyAdmin(ctx *fasthttp.RequestCtx, host string) (int, error)

func VerifyAdminFiber added in v1.5.1

func VerifyAdminFiber(c *fiber.Ctx, host string) (int, error)

Types

type Auth

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

func Init

func Init(host string, isDebug bool) *Auth

func (*Auth) IsAdmin

func (*Auth) IsAdminFiber added in v1.5.1

func (a *Auth) IsAdminFiber(c *fiber.Ctx) error

Jump to

Keyboard shortcuts

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