๐Ÿš€ Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more โ†’
Socket
DemoInstallSign in
Socket

github.com/sundaytycoon/buttons-api

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/sundaytycoon/buttons-api

v0.0.0-20220403165414-79ce300d6602
Source
Go
Version published
Created
Source

buttons-api

์„ค๊ณ„ UMLs

UMLs.md

gettings started

go run cmd/main.go server start # 5001 grpc - 5002 http

package structue?

  ๐Ÿ“‚ git@sundaytycoon/buttons-api
   โ”ฃ๐Ÿ“‚ cmd
   โ”ƒ โ”— ๐Ÿ“œ main.go # [server, entd]๊ฐ€ ์žˆ์Œ
   โ”ฃ๐Ÿ“‚ doc
   โ”ƒ โ”— ๐Ÿ“‚ OpenAPI # swagger.json๋“ค์–ด์˜ค๋Š”๊ณณ/ swagger-ui ๋‹ค์šด๋ฐ›๋Š” ๊ณณ
   โ”ฃ๐Ÿ“‚ edge # ๋น„์ง€๋‹ˆ์Šค๋กœ์ง ์ƒ์„ธํ•˜๊ฒŒ ํƒ€์ง€ ์•Š์œผ๋ฉด์„œ, ์™ธ๋ถ€ ์„œ๋ฒ„๋ž‘ ์ตœ์ข…์ ์œผ๋กœ ํ†ต์‹ ํ•˜๋Š” ์ฝ”๋“œ๋“ค
   โ”ฃ๐Ÿ“‚ ent # entd.go ์˜ generated๋œ ํŒŒ์ผ๋“ค ํ•œ ๋ญ‰ํ……์ด
   โ”ฃ๐Ÿ“‚ gen/go/buttons/api/v1 # protobuf๋กœ generated๋œ golangํŒŒ์ผ
   โ”ฃ๐Ÿ“‚ internal # ๋‚ด๋ถ€ ๋น„์ง€๋‹ˆ์Šค๋กœ์ง ๋‹ด๋Š”๊ณณ # ๋˜ฅ๊ฐ™์€ ์ฝ”๋“œ๋“ค ๋‘๋Š” ๊ณณ
   โ”ฃ๐Ÿ“‚ pkg
   โ”ฃ๐Ÿ“‚ proto # protobuf ํŒŒ์ผ๋“ค์ด ์žˆ์Œ.
make generate-docs # ์š”๊ฑฐํ•˜๋ฉด ์ฝ”๋“œ dependency graph๊ฐ€ ๋ฐ”๋€Œ์–ด์š”

code dependency graph

wiki

ent.go ์œ ์šฉํ•œ ์Šคํฌ๋ฆฝํŠธ ๋ชจ์Œ

# add model
go run entgo.io/ent/cmd/ent init User

# sync schema
### First, should to modify ent/schema/*.go before synchronizing schema
vi ./ent/schema/*.go # step 1
go generate ./ent # step 2
go run cmd/main.go ent migration # step 3


๊ฐœ๋ฐœ ์…‹ํŒ… ๊ด€๋ จ ๋ฌธ์„œ

scripts

protobuf generating

make protosetup # For set up protobuf using `buf`

make protogen # For generating protobuf

References

FAQs

Package last updated on 03 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts