moment-service

module
v0.0.0-...-5c4e16d Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: MIT

README

moment-service

Features

  • post
  • comment
  • like

Layer

The application with the following layers:

    1. gRPC Layer: Responsible for handling incoming gRPC requests and returning responses.
    1. Service Layer: Responsible for handling business logic and communicating with the data layer.
    1. Data Layer: Responsible for handling communication with the database or nosql or other external service.

Run

# 运行
make run

Develop

如果中间有修改 proto 文件,需要重新生成 *.pb.go*_grpc.pb.go

# 生成 *.pb.go
make proto

# 生成 *_grpc.pb.go
make grpc

# 生成文档 在 api/index.html 可以直接浏览器查看
make doc

make run

Reference

Directories

Path Synopsis
api
cmd
server
*
*
internal

Jump to

Keyboard shortcuts

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