cloudwego / biz-demo Goto Github PK
View Code? Open in Web Editor NEWBusiness Demo for CloudWeGo
License: Apache License 2.0
Business Demo for CloudWeGo
License: Apache License 2.0
Is your feature request related to a problem? Please describe.
TODO list of #9
Describe the solution you'd like
Finish todo list
Describe the bug
when run these code under easy_note
, hz update
failed (hz version v0.5.1)
biz-demo/easy_note/cmd/api/Makefile
Lines 1 to 5 in 0c8638d
Accoding the doc, there no mod/module
param in hz update
To Reproduce
Steps to reproduce the behavior:
go install github.com/cloudwego/hertz/cmd/hz@latest
cd biz-demo/easy_note/cmd/api
make update_api
hz update -mod github.com/cloudwego/biz-demo/easy_note -idl ../../idl/api.thrift
Incorrect Usage: flag provided but not defined: -mod
NAME:
hz update - Update an existing Hertz project
USAGE:
hz update command [command options] [arguments...]
COMMANDS:
help, h Shows a list of commands or help for one command
help, h Shows a list of commands or help for one command
OPTIONS:
--idl value [ --idl value ] Specify the IDL file path. (.thrift or .proto)
--out_dir value Specify the project path.
--handler_dir value Specify the handler path.
--model_dir value Specify the model path.
--client_dir value Specify the client path. If not specified, IDL generated path is used for 'client' command; no client code is generated for 'new' co
mmand
--proto_path value, -I value [ --proto_path value, -I value ] Add an IDL search path for includes. (Valid only if idl is protobuf)
--thriftgo value, -t value [ --thriftgo value, -t value ] Specify arguments for the thriftgo. ({flag}={value})
--protoc value, -p value [ --protoc value, -p value ] Specify arguments for the protoc. ({flag}={value})
--option_package value, -P value [ --option_package value, -P value ] Specify the package path. ({include_path}={import_path})
--no_recurse Generate master model only. (default: false)
--json_enumstr Use string instead of num for json enums when idl is thrift. (default: false)
--unset_omitempty Remove 'omitempty' tag for generated struct. (default: false)
--pb_camel_json_tag Convert Name style for json tag to camel(Only works protobuf). (default: false)
--snake_tag Use snake_case style naming for tags. (Only works for 'form', 'query', 'json') (default: false)
--exclude_file value, -E value [ --exclude_file value, -E value ] Specify the files that do not need to be updated.
--customize_package value Specify the package template. ({{Template Profile}}:)
--handler_by_method Generate a separate handler file for each method. (default: false)
--protoc-plugins value [ --protoc-plugins value ] Specify plugins for the protoc. ({plugin_name}:{options}:{out_dir})
--thrift-plugins value [ --thrift-plugins value ] Specify plugins for the thriftgo. ({plugin_name}:{options})
--help, -h show help (default: false)
[ERROR]/home/liuxiao/workspace/golang/pkg/mod/github.com/cloudwego/hertz/cmd/[email protected]/main.go:42: flag provided but not defined: -mod
Expected behavior
This parameter may exist in previous hertz versions, now how to handle the go module problem in the current version of hertz?
For example, code structure like this, if my project is not under GOPATH
, how can i use hz update
to change api interface when interface changed.
I'm newbie from hertz, looking forward to your reply, thx.
easy_note
cmd
api --> hertz
note --> kitex
user --> kitex
idl
kitex_gen
...
go.mod
Screenshots
No.
Kitex version:
No.
Environment:
[liuxiao@dev easy_note]$ go env
GO111MODULE="on"
GOARCH="amd64"
GOBIN=""
GOCACHE="/home/liuxiao/.cache/go-build"
GOENV="/home/liuxiao/.config/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="amd64"
GOHOSTOS="linux"
GOINSECURE=""
GOMODCACHE="/home/liuxiao/workspace/golang/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="linux"
GOPATH="/home/liuxiao/workspace/golang"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/home/liuxiao/go/go1.18.10"
GOSUMDB="off"
GOTMPDIR=""
GOTOOLDIR="/home/liuxiao/go/go1.18.10/pkg/tool/linux_amd64"
GOVCS=""
GOVERSION="go1.18.10"
GCCGO="gccgo"
GOAMD64="v1"
AR="ar"
CC="gcc"
CXX="g++"
CGO_ENABLED="1"
GOMOD="/home/liuxiao/Code/GoProjects/biz-demo/easy_note/go.mod"
GOWORK=""
CGO_CFLAGS="-g -O2"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-g -O2"
CGO_FFLAGS="-g -O2"
CGO_LDFLAGS="-g -O2"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -m64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/tmp/go-build2861411109=/tmp/go-build -gno-record-gcc-switches"
Additional context
No.
Is your feature request related to a problem? Please describe.
Make this API gateway production ready.
Describe the solution you'd like
Optional
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
Describe the bug
The command line should be "go run main.go -action queryNote" rather than “ "go run main.go -action queryNoten' "
To Reproduce
Also, I would deeply appreciate if I could trouble the author to include a few lines in the ReadMe to briefly explain how externals could interact with the EasyNote App, for example, how to use postman to send HTTP request with the right format.
rpc error: code = Unimplemented desc = unknown service opentelemetry.proto.collector.metrics.v1.MetricsService
$ docker pull cr-cn-beijing.volces.com/cloudwego-demo/bookinfo:v1.0
Error response from daemon: toomanyrequests: remaining traffic quota is not enough to download this layer for current month
Error when pull cloudwego-demo image, is there a image pull quota limit?
PHONY: gen-checkout-client
gen-checkout-client:
@cd app/frontend && cwgo client -I ../../idl --type RPC --service checkout --module github.com/cloudwego/biz-demo/gomall/app/frontend --idl ../../idl/checkout.proto
.PHONY: gen-order-client
gen-order-client:
@cd app/frontend && cwgo client -I ../../idl --type RPC --service order --module github.com/cloudwego/biz-demo/gomall/app/frontend --idl ../../idl/order.proto
前面21-23行已经生成了说有RPC的client,为什么这里还要在frontend里面生成RPC 的client?并且没有看到生成的文件
想问下,咱们这个链路跟踪最后的展示UIvstack有开源么?感觉比jaeger展示要好
Describe the bug
Could not get the expected output as described in the Readme of the Open-payment-platform when following its instructions precisely
To Reproduce
Follow the ReadMe instruction:
"## How to Run
root directory is
open-payment-platform
.
# root directory
make start
# root directory
make gateway
run this server,you should wait for the Nacos server is running.
How to check the Nacos? you can open the link http://127.0.0.1:8848/nacos/index.html#/login
"
and http://127.0.0.1:8848/nacos/index.html#/login could not be opened
Expected behavior
Naco server should be running, so that the payment servers can run
Screenshots
Command line output when starting the RPC servers:
Command line output from the HTTP server:
Failure to open the webpage to verify that Nacos server is running:
Kitex version:
v0.5.2
Environment:
The output of go env
:
GO111MODULE="on"
GOARCH="arm64"
GOBIN=""
GOCACHE="/Users/wangyiwen/Library/Caches/go-build"
GOENV="/Users/wangyiwen/Library/Application Support/go/env"
GOEXE=""
GOEXPERIMENT=""
GOFLAGS=""
GOHOSTARCH="arm64"
GOHOSTOS="darwin"
GOINSECURE=""
GOMODCACHE="/Users/wangyiwen/go/pkg/mod"
GONOPROXY=""
GONOSUMDB=""
GOOS="darwin"
GOPATH="/Users/wangyiwen/go"
GOPRIVATE=""
GOPROXY="https://goproxy.cn,direct"
GOROOT="/usr/local/go"
GOSUMDB="sum.golang.org"
GOTMPDIR=""
GOTOOLDIR="/usr/local/go/pkg/tool/darwin_arm64"
GOVCS=""
GOVERSION="go1.20.4"
GCCGO="gccgo"
AR="ar"
CC="clang"
CXX="clang++"
CGO_ENABLED="1"
GOMOD="/Users/wangyiwen/go/src/open-payment-platform/go.mod"
GOWORK=""
CGO_CFLAGS="-O2 -g"
CGO_CPPFLAGS=""
CGO_CXXFLAGS="-O2 -g"
CGO_FFLAGS="-O2 -g"
CGO_LDFLAGS="-O2 -g"
PKG_CONFIG="pkg-config"
GOGCCFLAGS="-fPIC -arch arm64 -pthread -fno-caret-diagnostics -Qunused-arguments -fmessage-length=0 -fdebug-prefix-map=/var/folders/ps/hkhsdf0j5ql98hgzk334whzc0000gn/T/go-build2437649674=/tmp/go-build -gno-record-gcc-switches -fno-common"
Additional context
The problem persist after running "go get github.com/hertz-contrib/registry/nacos"
Hello:
想问下,咱们这个 wire、wire_gen中的代码是根据啥生成的么?还是一点点手写的?包括ratings、reviews等服务关于wire这块的。请说下,谢谢。
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.