auth

package
v0.0.33 Latest Latest
Warning

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

Go to latest
Published: Dec 3, 2024 License: GPL-3.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleLogin

func HandleLogin(ctx *gin.Context) (interface{}, error)

func InitAuth

func InitAuth()

func LoginHandler

func LoginHandler(c context.Context, req *pb.LoginRequest) (*pb.LoginResponse, error)

func MakeGinHandlerFunc

func MakeGinHandlerFunc(handler HandlerFunc) gin.HandlerFunc

func RegisterHandler

func RegisterHandler(c context.Context, req *pb.RegisterRequest) (*pb.RegisterResponse, error)

func RemoveJWTHandler

func RemoveJWTHandler(c *gin.Context)

Types

type HTTPError

type HTTPError struct {
	Code int
	Err  error
}

func (*HTTPError) Error

func (e *HTTPError) Error() string

type HandlerFunc

type HandlerFunc func(ctx *gin.Context) (interface{}, error)

type Response

type Response struct {
	Msg string `json:"msg"`
}

Jump to

Keyboard shortcuts

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