auth

package
v0.0.0-...-2746094 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewAuthServiceClient

func NewAuthServiceClient() pb.AuthServiceClient

Types

type AuthMiddleware

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

func NewAuthMiddleware

func NewAuthMiddleware(svc *AuthServiceClient) AuthMiddleware

func (*AuthMiddleware) Authenticate

func (am *AuthMiddleware) Authenticate(ctx *gin.Context)

type AuthServiceClient

type AuthServiceClient struct {
	Client pb.AuthServiceClient
}

func MapRoutes

func MapRoutes(r *gin.Engine) *AuthServiceClient

func (*AuthServiceClient) Login

func (svc *AuthServiceClient) Login(ctx *gin.Context)

func (*AuthServiceClient) Register

func (svc *AuthServiceClient) Register(ctx *gin.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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