handler

package
v0.0.0-...-87c02f1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AuthHandler

type AuthHandler struct {
	pb.UnimplementedAuthServiceServer
	// contains filtered or unexported fields
}

func NewAuthHandler

func NewAuthHandler(opts AuthServerOptions) *AuthHandler

func (*AuthHandler) Login

type AuthServerOptions

type AuthServerOptions struct {
	AuthService  *middleware.AuthService
	UserService  *service.UserService
	TokenHandler *middleware.TokenHandler
}

type UserHandler

type UserHandler struct {
	pb.UnimplementedUserServiceServer
	// contains filtered or unexported fields
}

func NewUserHandler

func NewUserHandler(opts *UserServerOpts) *UserHandler

func (*UserHandler) CreateUser

func (*UserHandler) GetUserInfo

func (*UserHandler) HashPassword

func (u *UserHandler) HashPassword(password string) (string, error)

type UserServerOpts

type UserServerOpts struct {
	UserService *service.UserService
	AuthService *middleware.AuthService
}

Jump to

Keyboard shortcuts

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