auth

package
v0.0.0-...-3c0921f Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UseAuthFlag = "use-auth"
)

Variables

This section is empty.

Functions

func RegisterFlags

func RegisterFlags(f []cli.Flag) []cli.Flag

Types

type Auth

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

func New

func New(c *cli.Context) *Auth

func (*Auth) Init

func (s *Auth) Init() error

func (*Auth) RegisterHandler

func (s *Auth) RegisterHandler(r *gin.Engine)

type AuthErrorContext

type AuthErrorContext struct{}

type User

type User struct {
	ID      string
	Email   string
	Expired bool
}

func GetUserFromContext

func GetUserFromContext(c *gin.Context) *User

Jump to

Keyboard shortcuts

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