auth

package
v0.0.25 Latest Latest
Warning

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

Go to latest
Published: May 9, 2024 License: GPL-3.0 Imports: 16 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