# Jupiter **Repository Path**: magicmmp/Jupiter ## Basic Information - **Project Name**: Jupiter - **Description**: 斗鱼的_Jupiter是一个面向服务治理的Golang微服务框架,以开发效率和治理效率为核心目标,从统一开发规范、完善监控埋点、降低开发难度等多个维度帮助Gopher开发高性能、高可靠性的 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: https://www.oschina.net/p/jupiter - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 11 - **Created**: 2020-06-21 - **Last Updated**: 2020-12-19 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README ![](doc/logo.png) [![Build Status](https://travis-ci.org/douyu/jupiter.svg?branch=master)](https://travis-ci.org/douyu/jupiter) [![codecov](https://codecov.io/gh/douyu/jupiter/branch/master/graph/badge.svg)](https://codecov.io/gh/douyu/jupiter) [![go.dev reference](https://img.shields.io/badge/go.dev-reference-007d9c?logo=go&logoColor=white&style=flat-square)](https://pkg.go.dev/github.com/douyu/jupiter?tab=doc) [![Go Report Card](https://goreportcard.com/badge/github.com/douyu/jupiter)](https://goreportcard.com/report/github.com/douyu/jupiter) ![license](https://img.shields.io/badge/license-Apache--2.0-green.svg) # JUPITER: Governance-oriented Microservice Framework ## Introduction JUPITER is a governance-oriented microservice framework, and used for many years in [Douyu](https://www.douyu.com). ## Documentation See the [中文文档](http://jupiter.douyu.com/) for document in Chinese. ## Quick Start ```golang func main() { var app jupiter.Application app.Startup() app.Serve(startHTTPServer()) app.Serve(startGRPCServer()) app.Schedule(startWorker()) app.Run() } func startHTTPServer() server.Server { server := xecho.DefaultConfig().Build() server.GET("/hello", func(ctx echo.Context) error { return ctx.JSON(200, "Gopher Wuhan") }) return server } func startGRPCServer() server.Server { server := xgrpc.DefaultConfig().Build() helloworld.RegisterGreeterServer(server.Server, new(greeter.Greeter)) return server } func startWorker() worker.Worker { cron := xcron.DefaultConfig().Build() cron.Schedule(xcron.Every(time.Second*10), xcron.FuncJob(func() error { fmt.Println("now: ", time.Now().Local().String()) return nil })) return cron } ``` More Example: - [Quick Start](doc/wiki-cn/quickstart.md) - [Examples](http://jupiter.douyu.com/jupiter/1.2example.html) ## Bugs and Feedback For bug report, questions and discussions please submit GitHub Issues. ## Contributing Contributions are always welcomed! Please see [CONTRIBUTING](CONTRIBUTING.md) for detailed guidelines. You can start with the issues labeled with good first issue. ## Contact - DingTalk: ![DingTalk](doc/dingtalk.png) - Wechat: ![Wechat](doc/wechat.png)