-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
13 changed files
with
187 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,24 +60,24 @@ go get github.com/ego-component/[email protected] | |
|
||
| Component Name | Code | Example | Doc | | ||
|---------------------------|----------------------------------------------------------------------|--------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------| | ||
| HTTP Server | [Code](https://github.com/gotomicro/ego/tree/master/server/egin) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/http) | [Doc](https://ego.gocn.vip/frame/server/http.html) | | ||
| gRPC Server | [Code](https://github.com/gotomicro/ego/tree/master/server/egrpc) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/grpc) | [Doc](https://ego.gocn.vip/frame/server/grpc.html#example) | | ||
| Governance Service | [Code](https://github.com/gotomicro/ego/tree/master/server/egovernor) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/governor) | [Doc](https://ego.gocn.vip/frame/server/governor.html) | | ||
| Job | [Code](https://github.com/gotomicro/ego/tree/master/task/ejob) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/job) | [Doc](https://ego.gocn.vip/frame/task/job.html) | | ||
| Corn job | [Code](https://github.com/gotomicro/ego/tree/master/task/ecron) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/cron) | [Doc](https://ego.gocn.vip/frame/task/cron.html#_3-%E5%B8%B8%E8%A7%84%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1) | | ||
| Distributed Scheduled Job | [Code](https://github.com/gotomicro/ego/tree/master/task/ecron) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/cron) | [Doc](https://ego.gocn.vip/frame/task/cron.html#_4-%E5%88%86%E5%B8%83%E5%BC%8F%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1) | | ||
| HTTP Client | [Code](https://github.com/gotomicro/ego/tree/master/client/ehttp) | [Example](https://github.com/gotomicro/ego/tree/master/examples/http/client) | [Doc](https://ego.gocn.vip/frame/client/http.html#example) | | ||
| gRPC Client | [Code](https://github.com/gotomicro/ego/tree/master/client/egrpc) | [Example](https://github.com/gotomicro/ego/tree/master/examples/grpc/direct) | [Doc](https://ego.gocn.vip/frame/client/grpc.html#_4-%E7%9B%B4%E8%BF%9Egrpc) | | ||
| gRPC Client using ETCD | [Code](https://github.com/ego-component/tree/master/eetcd) | [Example](https://github.com/ego-component/tree/master/eetcd/examples) | [Doc](https://ego.gocn.vip/frame/client/grpc.html#_5-%E4%BD%BF%E7%94%A8etcd%E7%9A%84grpc) | | ||
| gRPC Client using k8s | [Code](https://github.com/ego-component/tree/master/ek8s) | [Example](https://github.com/ego-component/tree/master/ek8s/examples) | [Doc](https://ego.gocn.vip/frame/client/grpc.html#_6-%E4%BD%BF%E7%94%A8k8s%E7%9A%84grpc) | | ||
| Sentinel | [Code](https://github.com/gotomicro/ego/tree/master/core/esentinel) | [Example](https://github.com/gotomicro/ego/tree/master/examples/sentinel/http) | [Doc](https://ego.gocn.vip/frame/client/sentinel.html) | | ||
| MySQL | [Code](https://github.com/ego-component/tree/master/egorm) | [Example](https://github.com/ego-component/tree/master/egorm/examples) | [Doc](https://ego.gocn.vip/frame/client/gorm.html#example) | | ||
| Redis | [Code](https://github.com/ego-component/tree/master/eredis) | [Example](https://github.com/ego-component/tree/master/eredis/examples) | [Doc](https://ego.gocn.vip/frame/client/redis.html#example) | | ||
| Redis Distributed lock | [Code](https://github.com/ego-component/tree/master/eredis) | [Example](https://github.com/ego-component/tree/master/eredis/examples) | [Doc](https://ego.gocn.vip/frame/client/redis.html#example) | | ||
| Mongo | [Code](https://github.com/ego-component/tree/master/emongo) | [Example](https://github.com/ego-component/tree/master/emongo/examples) | [Doc](https://ego.gocn.vip/frame/client/mongo.html) | | ||
| Kafka | [Code](https://github.com/ego-component/tree/master/ekafka) | [Example](https://github.com/ego-component/tree/master/ekafka/examples) | [Doc](https://ego.gocn.vip/frame/client/kafka.html) | | ||
| ETCD | [Code](https://github.com/ego-component/tree/master/eetcd) | [Example](https://github.com/ego-component/tree/master/eetcd/examples) | [Doc](https://ego.gocn.vip/frame/client/eetcd.html) | | ||
| K8S | [Code](https://github.com/ego-component/tree/master/ek8s) | [Example](https://github.com/ego-component/tree/master/ek8s/examples) | [Doc](https://ego.gocn.vip/frame/client/ek8s.html) | | ||
| HTTP Server | [Code](https://github.com/gotomicro/ego/tree/master/server/egin) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/http) | [Doc](https://ego-org.com/frame/server/http.html) | | ||
| gRPC Server | [Code](https://github.com/gotomicro/ego/tree/master/server/egrpc) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/grpc) | [Doc](https://ego-org.com/frame/server/grpc.html#example) | | ||
| Governance Service | [Code](https://github.com/gotomicro/ego/tree/master/server/egovernor) | [Example](https://github.com/gotomicro/ego/tree/master/examples/server/governor) | [Doc](https://ego-org.com/frame/server/governor.html) | | ||
| Job | [Code](https://github.com/gotomicro/ego/tree/master/task/ejob) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/job) | [Doc](https://ego-org.com/frame/task/job.html) | | ||
| Corn job | [Code](https://github.com/gotomicro/ego/tree/master/task/ecron) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/cron) | [Doc](https://ego-org.com/frame/task/cron.html#_3-%E5%B8%B8%E8%A7%84%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1) | | ||
| Distributed Scheduled Job | [Code](https://github.com/gotomicro/ego/tree/master/task/ecron) | [Example](https://github.com/gotomicro/ego/tree/master/examples/task/cron) | [Doc](https://ego-org.com/frame/task/cron.html#_4-%E5%88%86%E5%B8%83%E5%BC%8F%E5%AE%9A%E6%97%B6%E4%BB%BB%E5%8A%A1) | | ||
| HTTP Client | [Code](https://github.com/gotomicro/ego/tree/master/client/ehttp) | [Example](https://github.com/gotomicro/ego/tree/master/examples/http/client) | [Doc](https://ego-org.com/frame/client/http.html#example) | | ||
| gRPC Client | [Code](https://github.com/gotomicro/ego/tree/master/client/egrpc) | [Example](https://github.com/gotomicro/ego/tree/master/examples/grpc/direct) | [Doc](https://ego-org.com/frame/client/grpc.html#_4-%E7%9B%B4%E8%BF%9Egrpc) | | ||
| gRPC Client using ETCD | [Code](https://github.com/ego-component/tree/master/eetcd) | [Example](https://github.com/ego-component/tree/master/eetcd/examples) | [Doc](https://ego-org.com/frame/client/grpc.html#_5-%E4%BD%BF%E7%94%A8etcd%E7%9A%84grpc) | | ||
| gRPC Client using k8s | [Code](https://github.com/ego-component/tree/master/ek8s) | [Example](https://github.com/ego-component/tree/master/ek8s/examples) | [Doc](https://ego-org.com/frame/client/grpc.html#_6-%E4%BD%BF%E7%94%A8k8s%E7%9A%84grpc) | | ||
| Sentinel | [Code](https://github.com/gotomicro/ego/tree/master/core/esentinel) | [Example](https://github.com/gotomicro/ego/tree/master/examples/sentinel/http) | [Doc](https://ego-org.com/frame/client/sentinel.html) | | ||
| MySQL | [Code](https://github.com/ego-component/tree/master/egorm) | [Example](https://github.com/ego-component/tree/master/egorm/examples) | [Doc](https://ego-org.com/frame/client/gorm.html#example) | | ||
| Redis | [Code](https://github.com/ego-component/tree/master/eredis) | [Example](https://github.com/ego-component/tree/master/eredis/examples) | [Doc](https://ego-org.com/frame/client/redis.html#example) | | ||
| Redis Distributed lock | [Code](https://github.com/ego-component/tree/master/eredis) | [Example](https://github.com/ego-component/tree/master/eredis/examples) | [Doc](https://ego-org.com/frame/client/redis.html#example) | | ||
| Mongo | [Code](https://github.com/ego-component/tree/master/emongo) | [Example](https://github.com/ego-component/tree/master/emongo/examples) | [Doc](https://ego-org.com/frame/client/mongo.html) | | ||
| Kafka | [Code](https://github.com/ego-component/tree/master/ekafka) | [Example](https://github.com/ego-component/tree/master/ekafka/examples) | [Doc](https://ego-org.com/frame/client/kafka.html) | | ||
| ETCD | [Code](https://github.com/ego-component/tree/master/eetcd) | [Example](https://github.com/ego-component/tree/master/eetcd/examples) | [Doc](https://ego-org.com/frame/client/eetcd.html) | | ||
| K8S | [Code](https://github.com/ego-component/tree/master/ek8s) | [Example](https://github.com/ego-component/tree/master/ek8s/examples) | [Doc](https://ego-org.com/frame/client/ek8s.html) | | ||
| Oauth2 | [Code](https://github.com/ego-component/tree/master/eoauth2) | [Example](https://github.com/ego-component/tree/master/eoauth2/examples) || | ||
|
||
## 欢迎大家使用EGO | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ | |
|
||
## 2 说明 | ||
* [example地址](https://github.com/ego-component/egorm/tree/master/examples) | ||
* [文档地址](https://ego.gocn.vip/frame/client/gorm.html#_1-%E7%AE%80%E4%BB%8B) | ||
* [文档地址](https://ego-org.com/frame/client/gorm.html#_1-%E7%AE%80%E4%BB%8B) | ||
* ego版本:``[email protected]`` | ||
* egorm版本: ``[email protected]`` | ||
|
||
|
@@ -141,7 +141,7 @@ enableDetailSQL=true # 记录sql时,是否打印包含参数的完整sql | |
|
||
### 6.5 开启自定义日志字段的数据 | ||
在使用了ego的自定义字段功能`export EGO_LOG_EXTRA_KEYS=X-Ego-Uid`,将对应的数据塞入到context中,那么gorm的access日志就可以记录对应字段信息。 | ||
参考 [详细文档](https://ego.gocn.vip/micro/chapter2/trace.html#_6-ego-access-%E8%87%AA%E5%AE%9A%E4%B9%89%E9%93%BE%E8%B7%AF) : | ||
参考 [详细文档](https://ego-org.com/micro/chapter2/trace.html#_6-ego-access-%E8%87%AA%E5%AE%9A%E4%B9%89%E9%93%BE%E8%B7%AF) : | ||
```go | ||
func testDB() error { | ||
var user User | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,7 +37,7 @@ | |
|
||
|
||
以上就是Ego将日志中实现了链路的数据流向。快来体验吧。 | ||
[如何传递和使用链路,请点击链接](https://ego.gocn.vip/frame/core/trace.html) | ||
[如何传递和使用链路,请点击链接](https://ego-org.com/frame/core/trace.html) | ||
|
||
体验版本为: | ||
* github.com/gotomicro/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.