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.
 
 
 
 
LinXiaoWei bffc1a0989
feat(transport): add endpoint option for server (#2904)
10 months ago
.github deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago
api fix: rectification of non-standard lint codes (#2746) 1 year ago
cmd deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago
config fix: rectification of non-standard lint codes (#2746) 1 year ago
contrib deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago
docs docs: add wechat official account image to the Chinese document (#1190) 3 years ago
encoding fix(encoding/form): failed to decode the map type (#2468) 11 months ago
errors chore: remove the dependency of grpc_testing module (#2824) 12 months ago
hack fix: Replace the docker image of Polaris (#1999) 2 years ago
internal fix: typo and grammatical errors (#2368) 2 years ago
log fix: logging middle don't get trace_id value when logger is filterLogger (#2869) 11 months ago
metadata refactor: metadata supports key corresponding to multiple values (#2772) 1 year ago
metrics chore: fix metrics readme (#1415) 3 years ago
middleware fix(tracing): use global provider by default, but allow custom providers (#2803) 12 months ago
registry feat: add subset alg for instances (#2613) 1 year ago
selector chore: update comment (#2747) 1 year ago
third_party feat:add buf apis (#2604) 1 year ago
transport feat(transport): add endpoint option for server (#2904) 10 months ago
.gitignore fix: .gitignore del Repeated .*so (#2367) 2 years ago
.golangci.yml refactor(transport): format import and init slice cap (#2741) 1 year ago
CODE_OF_CONDUCT.md doc: create CODE_OF_CONDUCT.md (#1585) 3 years ago
CONTRIBUTING.md fix: typo and grammatical errors (#2368) 2 years ago
LICENSE init v2 3 years ago
Makefile Update Makefile (#2725) 1 year ago
README.md chore: update go-zero link in readme (#2628) 1 year ago
README_zh.md docs: update README_zh.md (#2208) 2 years ago
ROADMAP.md feat:edit readme and roadmap (#1504) 3 years ago
SECURITY.md fix: markdown form format (#2721) 1 year ago
app.go Revert "feat: support polaris service governance" 1 year ago
app_test.go fix: rectification of non-standard lint codes (#2746) 1 year ago
codecov.yml add codecov (#1195) 3 years ago
go.mod deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago
go.sum deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago
options.go Revert "feat: support polaris service governance" 1 year ago
options_test.go fix: rectification of non-standard lint codes (#2746) 1 year ago
version.go deps: upgrade kratos version to v2.6.3 (#2903) 10 months ago

README.md

Build Status GoDoc codeCov Go Report Card License Awesome Go Discord

Go Kratos - A Go framework for microservices. | Product Hunt

Translate to: 简体中文

About Kratos

The name is inspired by the Greek-mythology-based game "God of War". It tells the adventures of Kratos becoming a god of war from a mortal and launching a god-killing slaughter.

Kratos is a microservice-oriented governance framework implemented 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 modern template. This template should help reduce the work required to setup up modern projects.

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 with 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 have the characteristics of 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 where 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 install github.com/go-kratos/kratos/cmd/kratos/v2@latest && kratos upgrade
kratos new helloworld
cd helloworld/ && go mod tidy
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 documentation.

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.
  • zeromicro/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.