Skip to content

Commit

Permalink
Merge pull request #46 from askuy/feature/document
Browse files Browse the repository at this point in the history
document
  • Loading branch information
askuy authored Jan 11, 2021
2 parents 0463dc9 + 5c7f151 commit 404a25b
Show file tree
Hide file tree
Showing 7 changed files with 64 additions and 0 deletions.
64 changes: 64 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,70 @@
## 帮助文档
[https://ego.gocn.vip](https://ego.gocn.vip)

## 介绍
EGO是一个集成里各种工程实践的框架。通过组件化的设计模式,保证了业务方能够统一的调用方式启动各种组件

使用EGO的优势
* 配置化驱动组件
* 屏蔽底层组件启动细节
* 微服务组件的可观测、可治理
* 可插拔的Ego-Component组件
* Fail Fast理念和错误友好提示

## 功能
* server HTTP
* [例子](https://github.com/gotomicro/ego/tree/master/examples/server/http)
* [使用方式](https://ego.gocn.vip/frame/server/http.html)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_2-http%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%97%A5%E5%BF%97)
* server gRPC
* [例子](https://github.com/gotomicro/ego/tree/master/examples/server/grpc)
* [使用方式](https://ego.gocn.vip/frame/server/grpc.html#example)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_1-grpc%E6%9C%8D%E5%8A%A1%E7%AB%AF%E6%97%A5%E5%BF%97)
* task job
* [例子](https://github.com/gotomicro/ego/tree/master/examples/task/job)
* [使用方式](https://ego.gocn.vip/frame/task/job.html)
* task cron
* [例子](https://github.com/gotomicro/ego/tree/master/examples/task/cron)
* [使用方式](https://ego.gocn.vip/frame/task/cron.html)
* client HTTP
* [例子](https://github.com/gotomicro/ego/tree/master/examples/http/client)
* [使用方式](https://ego.gocn.vip/frame/client/http.html#example)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_4-http%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%97%A5%E5%BF%97)
* client gRPC
* [直连例子](https://github.com/gotomicro/ego/tree/master/examples/grpc/direct)
* [ETCD例子](https://github.com/gotomicro/ego-component/tree/master/eetcd/examples)
* [使用方式](https://ego.gocn.vip/frame/client/grpc.html#example)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_3-grpc%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%97%A5%E5%BF%97)
* client mysql
* [例子](https://github.com/gotomicro/ego-component/tree/master/egorm/examples/gorm)
* [使用方式](https://ego.gocn.vip/frame/client/gorm.html#example)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_5-gorm%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%97%A5%E5%BF%97)
* client redis
* [例子](https://github.com/gotomicro/ego-component/tree/master/eredis/examples/redis)
* [使用方式](https://ego.gocn.vip/frame/client/redis.html#example)
* [错误日志](https://ego.gocn.vip/awesome/logger.html#_6-redis%E5%AE%A2%E6%88%B7%E7%AB%AF%E6%97%A5%E5%BF%97)
* client mongo
* [例子](https://github.com/gotomicro/ego-component/tree/master/emongo)

## 特性介绍
* 配置驱动
所有组件启动方式为`组件名称.Load("配置名称").Build()`,可以创建一个组件实例。如以下`http server``egin`是组件名称,`server.http`是配置名称
```go
egin.Load("server.http").Build()
```
* 友好的debug
可以看到所有组件的请求参数和响应参数信息
![](docs/images/client-grpc.png)
![](docs/images/client-http.png)
![](docs/images/client-mysql.png)
![](docs/images/client-redis.jpg)
* 链路
使用opentrace协议,自动将链路加入到日志里
![](docs/images/trace.png)
* [统一的错误信息](https://ego.gocn.vip/awesome/logger.html)
* 统一的监控信息
![](docs/images/metric.png)

## Quick Start

### HelloWorld
Expand Down
Binary file added docs/images/client-grpc.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/client-http.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/client-mysql.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/client-redis.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/metric.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/trace.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 404a25b

Please sign in to comment.