controllers

package
v0.0.0-...-114ffcd Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DateFormat = "2006-01-02"
)

Variables

This section is empty.

Functions

func LoggerMiddleware

func LoggerMiddleware(log *logrus.Logger) func(c *fiber.Ctx) error

func NewApp

func NewApp(db *gorm.DB, log *logrus.Logger) *fiber.App

Types

type UserService

type UserService struct {
	userpb.UnimplementedUserServiceServer
	DB  *gorm.DB
	Log *logrus.Logger
}

func NewUserService

func NewUserService(db *gorm.DB, log *logrus.Logger) *UserService

func (*UserService) CreateUser

func (u *UserService) CreateUser(ctx context.Context, userReq *userpb.CreateUserRequest) (*emptypb.Empty, error)

func (*UserService) DeleteUser

func (u *UserService) DeleteUser(ctx context.Context, userReq *userpb.DeleteUserRequest) (*emptypb.Empty, error)

func (*UserService) GetAllUsers

func (*UserService) GetUser

func (*UserService) UpdateUser

Jump to

Keyboard shortcuts

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