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)
Click to show internal directories.
Click to hide internal directories.