auth

package
v0.0.0-...-6c8972c Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Permission

func Permission(ctx context.Context) map[string]storage.ResAct

Types

type CoreLogin

type CoreLogin interface {
	Login(context.Context, storage.User) (*storage.User, error)
}

type CoreUser

type CoreUser interface {
	GetUserByEmail(context.Context, string) (*storage.User, error)
}

type Handler

type Handler struct {
	auth.UnimplementedLoginServiceServer
	// contains filtered or unexported fields
}

func New

func New(login CoreLogin, user CoreUser, logger *logrus.Entry) *Handler

func (*Handler) Login

func (*Handler) RegisterSvc

func (h *Handler) RegisterSvc(srv *grpc.Server) error

// RegisterService with grpc server.

func (*Handler) ValidateRequestedLoginData

func (h *Handler) ValidateRequestedLoginData(ctx context.Context, req storage.User) error

Jump to

Keyboard shortcuts

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