commit cf5f31b13a6ad0c1bc1a1ddc30bc31f2b6994f3c Author: monorepo <> Date: Mon Jan 10 15:21:58 2022 +0800 Initial commit diff --git a/.drone.yml b/.drone.yml new file mode 100644 index 0000000..225ee0c --- /dev/null +++ b/.drone.yml @@ -0,0 +1,3 @@ +kind: pipeline +type: monorepo +name: backend diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..b818d78 --- /dev/null +++ b/.gitignore @@ -0,0 +1,73 @@ +# ---> Go +# Binaries for programs and plugins +*.exe +*.exe~ +*.dll +*.so +*.dylib + +# Test binary, built with `go test -c` +*.test + +# Output of the go coverage tool, specifically when used with LiteIDE +*.out + +# Dependency directories (remove the comment below to include it) +# vendor/ + +# ---> macOS +# General +.DS_Store +.AppleDouble +.LSOverride + +# Icon must end with two \r +Icon + + +# Thumbnails +._* + +# Files that might appear in the root of a volume +.DocumentRevisions-V100 +.fseventsd +.Spotlight-V100 +.TemporaryItems +.Trashes +.VolumeIcon.icns +.com.apple.timemachine.donotpresent + +# Directories potentially created on remote AFP share +.AppleDB +.AppleDesktop +Network Trash Folder +Temporary Items +.apdisk + +# ---> Windows +# Windows thumbnail cache files +Thumbs.db +Thumbs.db:encryptable +ehthumbs.db +ehthumbs_vista.db + +# Dump file +*.stackdump + +# Folder config file +[Dd]esktop.ini + +# Recycle Bin used on file shares +RECYCLE.BIN/ + +# Windows Installer files +*.cab +*.msi +*.msix +*.msm +*.msp + +# Windows shortcuts +*.lnk + +logs diff --git a/README.md b/README.md new file mode 100644 index 0000000..4300e24 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# monorepo - backend + diff --git a/app/README.md b/app/README.md new file mode 100644 index 0000000..4ce3142 --- /dev/null +++ b/app/README.md @@ -0,0 +1,17 @@ +# app + +所有应用的入口。 + +## 应用类型 + +### `/api`——对外提供接口服务的应用 + +一般指对外提供`http`服务的应用。 + +### `/service`——仅对内部提供服务的应用 + +一般指对内提供`grpc`服务的应用 + +### `/job`——运行短暂的一次性任务 + +分为一般任务和定时任务 \ No newline at end of file diff --git a/app/api/.keep b/app/api/.keep new file mode 100644 index 0000000..e69de29 diff --git a/app/service/.keep b/app/service/.keep new file mode 100644 index 0000000..e69de29 diff --git a/go.mod b/go.mod new file mode 100644 index 0000000..54962dd --- /dev/null +++ b/go.mod @@ -0,0 +1,4 @@ +module git.icechen.cn/monorepo/backend + +go 1.17 + diff --git a/pkg/README.md b/pkg/README.md new file mode 100644 index 0000000..fbbdb9b --- /dev/null +++ b/pkg/README.md @@ -0,0 +1,3 @@ +# backend + +所有应用共享的基础通用库代码 \ No newline at end of file diff --git a/pkg/orm/.keep b/pkg/orm/.keep new file mode 100644 index 0000000..e69de29 diff --git a/pkg/proto/.keep b/pkg/proto/.keep new file mode 100644 index 0000000..e69de29 diff --git a/pkg/rpc/.keep b/pkg/rpc/.keep new file mode 100644 index 0000000..e69de29