1
0
mirror of https://github.com/go-kratos/kratos.git synced 2025-01-14 02:33:03 +02:00
Your ultimate Go microservices framework for the cloud-native era.
Go to file
jakezhu9 afd108cdc7
test(options): increase tests coverage (#2183)
Co-authored-by: aythen <634222210@qq.com>
2022-07-10 20:44:33 +08:00
.github feat: add contrib/config/polaris polaris as configcenter (#2158) 2022-07-06 21:04:32 +08:00
api feat(metadata): Ignore service if the dependencies are not found (#2171) 2022-07-10 01:26:45 +08:00
cmd feat: add protoc-gen-go-http annotations synchronization with protoc-gen-go-grpc (#2151) 2022-07-04 23:28:26 +08:00
config test(config/file): add format test (#2147) (#2168) 2022-07-08 19:52:39 +08:00
contrib test(contrib): add unit test for contrib/metrics/prometheus (#2182) 2022-07-10 18:54:50 +08:00
docs docs: add wechat official account image to the Chinese document (#1190) 2021-07-14 23:45:07 +08:00
encoding fix(encoding/form): encode optional value (#2155) 2022-07-07 22:53:28 +08:00
errors test(errors): improve coverage (#2178) 2022-07-10 12:15:25 +08:00
hack fix: Replace the docker image of Polaris (#1999) 2022-05-19 22:42:02 +08:00
internal test(transport): add unit test for transport coverage: 91.7% of state… (#2172) 2022-07-10 20:34:19 +08:00
log feat: add logrus to contrib log (#2077) 2022-07-07 23:07:03 +08:00
metadata test: supplement the unit testing of metadata (#2161) 2022-07-07 20:46:50 +08:00
metrics chore: fix metrics readme (#1415) 2021-09-03 17:52:22 +08:00
middleware tests(coverage): Increase middleware tests coverage (#2165) 2022-07-08 19:53:21 +08:00
registry update contrib readme (#1831) 2022-02-21 18:37:20 +08:00
selector feat: add peer for selector (#2088) 2022-06-07 22:38:21 +08:00
third_party style(cmd/errors/examples/middleware/transport): fix common words' spelling mistakes (#1872) 2022-03-10 22:42:44 +08:00
transport test(transport): add unit test for transport coverage: 91.7% of state… (#2172) 2022-07-10 20:34:19 +08:00
.gitignore init v2 2021-02-17 17:14:47 +08:00
.golangci.yml fix: update ci gocyclo min-complexity 50 (#2000) 2022-05-19 23:00:17 +08:00
app_test.go app: fix instance nil when not registered (#2059) 2022-05-27 01:15:21 +08:00
app.go fix: catch server stop error (#2125) 2022-06-22 22:50:42 +08:00
CODE_OF_CONDUCT.md doc: create CODE_OF_CONDUCT.md (#1585) 2021-10-26 09:40:23 +08:00
codecov.yml add codecov (#1195) 2021-07-25 22:11:56 +08:00
CONTRIBUTING.md Create CONTRIBUTING.md 2021-10-26 09:29:15 +08:00
go.mod deps: upgrade go mod version (#2028) 2022-05-22 21:18:46 +08:00
go.sum deps: upgrade go mod version (#2028) 2022-05-22 21:18:46 +08:00
LICENSE init v2 2021-02-17 17:14:47 +08:00
Makefile fix: examples lint error (#1454) 2021-09-09 20:45:08 +08:00
options_test.go test(options): increase tests coverage (#2183) 2022-07-10 20:44:33 +08:00
options.go app: fix instance nil when not registered (#2059) 2022-05-27 01:15:21 +08:00
README_zh.md Update README_zh.md (#1975) 2022-05-11 10:31:09 +08:00
README.md fix: add 'go mod tidy' cmd to make quick-start available (#1973) 2022-05-11 13:42:29 +08:00
ROADMAP.md feat:edit readme and roadmap (#1504) 2021-09-23 18:10:59 +08:00
SECURITY.md Create SECURITY.md 2021-04-12 23:34:35 +08:00
version.go deps: upgrade kratos version to v.2.3.1 (#2075) 2022-06-02 19:13:50 +08:00

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 adventures of Kratos who became a god of war from a mortal and launched 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 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
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.
  • 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.