1
0
mirror of https://github.com/go-kratos/kratos.git synced 2024-12-26 20:54:38 +02:00
Your ultimate Go microservices framework for the cloud-native era.
Go to file
Kagaya 29a5327291
ci: submodule ci check (#1401)
* add tool scripts
2021-09-06 21:37:34 +08:00
.github ci: submodule ci check (#1401) 2021-09-06 21:37:34 +08:00
api fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
cmd optimize: template spaces to tabs (#1352) 2021-08-16 18:56:48 +08:00
config refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
contrib ci: submodule ci check (#1401) 2021-09-06 21:37:34 +08:00
docs docs: add wechat official account image to the Chinese document (#1190) 2021-07-14 23:45:07 +08:00
encoding fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
errors feat: Support custom status code conversion from HTTP and gRPC. (#1410) 2021-09-05 23:25:33 +08:00
examples fix(config/apollo): rename func NewSouceWithConfig (#1425) 2021-09-06 21:32:05 +08:00
hack ci: submodule ci check (#1401) 2021-09-06 21:37:34 +08:00
internal feat: Support custom status code conversion from HTTP and gRPC. (#1410) 2021-09-05 23:25:33 +08:00
log fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
metadata fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
metrics chore: fix metrics readme (#1415) 2021-09-03 17:52:22 +08:00
middleware fix: sra to aegis (#1420) 2021-09-05 22:42:38 +08:00
registry refactor: move plugins to contrib dir (#1399) 2021-09-01 13:40:14 +08:00
third_party feat: change grpc gateway import path (#1295) 2021-08-04 17:47:48 +08:00
transport feat: Support custom status code conversion from HTTP and gRPC. (#1410) 2021-09-05 23:25:33 +08:00
.gitignore init v2 2021-02-17 17:14:47 +08:00
.golangci.yml ci: adjust magic number check (#1402) 2021-09-01 12:59:16 +08:00
app_test.go fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
app.go fix:reuse parent ctx cause unexpected stop of App (#1429) 2021-09-06 21:31:33 +08:00
codecov.yml add codecov (#1195) 2021-07-25 22:11:56 +08:00
go.mod fix: sra to aegis (#1420) 2021-09-05 22:42:38 +08:00
go.sum fix: sra to aegis (#1420) 2021-09-05 22:42:38 +08:00
LICENSE init v2 2021-02-17 17:14:47 +08:00
Makefile ci: submodule ci check (#1401) 2021-09-06 21:37:34 +08:00
options_test.go fix: ci lint error (#1391) 2021-08-31 10:14:57 +08:00
options.go refactor: optimize the code and use golangci-lint to check for any errors (#1298) 2021-08-16 10:35:08 +08:00
README_zh.md chore: just fix readme_zh.md (#1323) 2021-08-12 14:30:16 +08:00
README.md docs: default documents points to the english document (#1180) 2021-07-13 14:27:28 +08:00
ROADMAP.md roadmap: update roadmap progress (#828) 2021-04-13 13:28:24 +08:00
SECURITY.md Create SECURITY.md 2021-04-12 23:34:35 +08:00
version.go add version v2.0.5 2021-08-16 21:50:37 +08:00

Build Status GoDoc Go Report Card License Discord

Translate to: 简体中文

About Kratos

The name is inspired by the game God of War which is based on Greek myths, tells the Kratos from mortals to become a God of War and launches the adventure of killing god.

Kratos is a microservice-oriented governance framework implements by golang, which offers convenient capabilities to help you quickly build a bulletproof application from scratch, such as:

Kratos is accessible, powerful, and provides tools required for large, robust applications.

Learning Kratos

Kratos has the most extensive and thorough documentation and example library of all modern web application frameworks, making it a breeze to get started with the framework.

We also provide a moderm template, This template should help reduce the work required to setup up a modern project.

Goals

Kratos boosts your productivity. With the integration of excellent resources and further support, programmers can get rid of most issues might encounter in the field of distributed systems and software engineering such that they are allowed to focus on the release of businesses only. Additionally, for each programmer, Kratos is also an ideal one learning warehouse for many aspects of microservices to enrich their experiences and skills.

Principles

  • Simple: Appropriate design, plain and easy code.
  • General: Cover the various utilities for business development.
  • Highly efficient: Speeding up the efficiency of businesses upgrading.
  • Stable: The base libs validated in the production environment which have the characters of the high testability, high coverage as well as high security and reliability.
  • Robust: Eliminating misusing through high quality of the base libs.
  • High-performance: Optimal performance excluding the optimization of hacking in case of unsafe
  • Expandability: Properly designed interfaces, you can expand utilities such as base libs to meet your further requirements.
  • Fault-tolerance: Designed against failure, enhance the understanding and exercising of SRE within Kratos to achieve more robustness.
  • Toolchain: Includes an extensive toolchain, such as the code generation of cache, the lint tool, and so forth.

Getting Started

Create a kratos playground through docker:

docker run -it --rm -p 8000:8000 --workdir /workspace golang
apt-get update && apt-get -y install protobuf-compiler
export GOPROXY=https://goproxy.io,direct
go get github.com/go-kratos/kratos/cmd/kratos/v2@latest && kratos upgrade
kratos new helloworld
kratos run

Use a browser to open and visit: http://localhost:8000/helloworld/kratos, The kratos program is running!

If you need more, please visit the kratos documentation.

Security Vulnerabilities

If you discover a security vulnerability within Kratos, please send an e-mail to tonybase via go-kratos@googlegroups.com. All security vulnerabilities will be promptly addressed.

Community

Contributors

Thank you for considering contributing to the Kratos framework! The contribution guide can be found in the Kratos documention.

License

The Kratos framework is open-sourced software licensed under the MIT license.

Acknowledgments

The following project had particular influence on kratos's design.

  • go-kit/kit is a programming toolkit for building microservices in go.
  • asim/go-micro a distributed systems development framework.
  • google/go-cloud is go cloud development kit.
  • tal-tech/go-zero is a web and rpc framework with lots of builtin engineering practices.
  • beego/beego is a web framework including RESTful APIs, web apps and backend services.