You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
Tt yo 567ff27eff
examples: add echo example (#1162)
3 years ago
.github fix data race (#963) 4 years ago
api add v2.0.0 3 years ago
cmd fix(cmd/run): fix the problem of looking for the cmd directory outside the project (#1166) 3 years ago
config add readValue (#1161) 3 years ago
docs docs: optimization the README.md (#1149) 3 years ago
encoding add form for codec (#1158) 3 years ago
errors fix(http): fix error encoder (#1141) 3 years ago
examples examples: add echo example (#1162) 3 years ago
internal add v2.0.0 3 years ago
log change debug level to -1 (#1105) 3 years ago
metadata add range (#1052) 3 years ago
metrics init v2 4 years ago
middleware add response header (#1119) 3 years ago
registry fix nacos 4 years ago
third_party add swagger api examples 3 years ago
transport add form for codec (#1158) 3 years ago
.gitignore init v2 4 years ago
LICENSE init v2 4 years ago
Makefile add source code installing (#1113) 3 years ago
README.md add swagger api examples 3 years ago
README_zh.md add url for docs (#1147) 3 years ago
ROADMAP.md roadmap: update roadmap progress (#828) 4 years ago
SECURITY.md Create SECURITY.md 4 years ago
app.go Revert/root ctx v2 (#1088) 3 years ago
app_test.go init v2 4 years ago
go.mod add form for codec (#1158) 3 years ago
go.sum add form for codec (#1158) 3 years ago
options.go add feat endpoint (#972) 4 years ago

README.md

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.