auth

package
v1.4.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2025 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthProvider

type AuthProvider interface {
	Init() error
	RegisterRoutes(engine http.HTTPEngine)
	Middleware() http.MiddlewareFunc
}

type AuthUser

type AuthUser interface {
	GetID() string
	GetEmail() string
	GetHashedPassword() string
}

type UserModel

type UserModel struct {
	ID       string `gorm:"primaryKey" json:"id" bson:"id,omitempty"`
	Email    string `gorm:"unique" json:"email" bson:"email"`
	Password string `json:"password" bson:"password"`
}

func (*UserModel) GetEmail

func (u *UserModel) GetEmail() string

func (*UserModel) GetHashedPassword

func (u *UserModel) GetHashedPassword() string

func (*UserModel) GetID

func (u *UserModel) GetID() string

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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