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.
 
 
 
 
xiaoxiaodek 413cc77f7d
fix(config): apollo close function: useless infinite loop causes high cpu usage (#1674)
3 years ago
.github test: add nacos test (#1603) 3 years ago
api refactor: move from io/ioutil to io and os packages (#1633) 3 years ago
cmd chore: completion command in the comment (#1680) 3 years ago
config refactor: move from io/ioutil to io and os packages (#1633) 3 years ago
container/group feat: add container group (#1452) 3 years ago
contrib fix(config): apollo close function: useless infinite loop causes high cpu usage (#1674) 3 years ago
docs docs: add wechat official account image to the Chinese document (#1190) 3 years ago
encoding feat(form/form): add support google.protobuf.Struct; (#1617) 3 years ago
errors fix: enhance error.FromError (#1451) 3 years ago
examples style: format (#1667) 3 years ago
hack fix: k8s nacos and zookeeper registry lint (#1599) 3 years ago
internal test: add transport grpc test (#1580) 3 years ago
log refactor: move from io/ioutil to io and os packages (#1633) 3 years ago
metadata fix: ci lint error (#1391) 3 years ago
metrics chore: fix metrics readme (#1415) 3 years ago
middleware fix: circuitbreaker use client context (#1679) 3 years ago
registry refactor: move plugins to contrib dir (#1399) 3 years ago
selector revert to select filters (#1656) 3 years ago
third_party feat: add descriptor.proto (#1590) 3 years ago
transport fix(grpc): Block the RCP unil a new picker is available (#1660) 3 years ago
.gitignore init v2 4 years ago
.golangci.yml ci: adjust magic number check (#1402) 3 years ago
CODE_OF_CONDUCT.md doc: create CODE_OF_CONDUCT.md (#1585) 3 years ago
CONTRIBUTING.md Create CONTRIBUTING.md 3 years ago
LICENSE init v2 4 years ago
Makefile fix: examples lint error (#1454) 3 years ago
README.md chore: update badge (#1582) 3 years ago
README_zh.md chore: update badge (#1582) 3 years ago
ROADMAP.md feat:edit readme and roadmap (#1504) 3 years ago
SECURITY.md Create SECURITY.md 4 years ago
app.go feat(app): app info delivery to stop context (#1649) 3 years ago
app_test.go test: add app and transport test (#1572) 3 years ago
codecov.yml add codecov (#1195) 3 years ago
go.mod feat: upgrade grpc version to 1.42.0 (#1626) 3 years ago
go.sum feat: upgrade grpc version to 1.42.0 (#1626) 3 years ago
options.go fix(app): use new context when app stop (#1589) 3 years ago
options_test.go fix: ci lint error (#1391) 3 years ago
version.go deps: upgrade 2.1.2 (#1638) 3 years 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 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 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 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 install 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 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.
  • 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.