starter-example

command module
v0.0.0-...-9fd2f02 Latest Latest
Warning

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

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

README

starter-example

示例服务

目录结构

  • bc --限界上下文(允许一个服务有多个限界上下文,但不建议。根据限界领域职责命名)
    • adapter --适配器(表现层)
      • consumer --消息队列监听
      • scheduler --定时任务调度
      • controller --http请求监听
      • grpc --grpc请求监听
    • app --应用层(主要实现)
    • domain --领域层
      • biserrs --业务异常定义
      • gateway --下游适配器网关(防腐层接口)
      • model --领域模型
    • infr --基础设施层
      • bcconsts --常量集合
      • gatewayimpl --下游网关实现(防腐层实现)
        • convs --跨域对象转换器
      • repo --仓储层
        • po --仓储层对象
  • configs --本地配置
  • docs --swagger文件
  • main.go --启动程序
  • zz_generated.ioc.go --ioc文件

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
bc
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag
Package docs GENERATED BY SWAG; DO NOT EDIT This file was generated by swaggo/swag

Jump to

Keyboard shortcuts

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