modulepackage
0.0.0-20220403165414-79ce300d6602
Repository: https://github.com/sundaytycoon/buttons-api.git
Documentation: pkg.go.dev
# README
buttons-api
μ€κ³ UMLs
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κ° λ°λμ΄μ
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
# Functions
No description provided by the author
# Constants
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
# Variables
No description provided by the author
No description provided by the author
No description provided by the author
server side error.
client side error.
No description provided by the author
No description provided by the author
OAPISpecYAML is the Open API Specifications Manifest document that defines golive HTTP API.go:embed api/oapi.
PublicUI is the Open API Specifications Manifest document that defines golive HTTP API.go:embed static/public.
StaticSwaggerUI is a collection of pre-built static files for swagger web ui.go:embed static/swagger-ui.
# Type aliases
No description provided by the author