jupiter

Jupiter是斗鱼开源的面向服务治理的Golang微服务框架

Github星跟蹤圖

GoTest
codecov
go.dev reference
Go Report Card
license

JUPITER: Governance-oriented Microservice Framework

Introduction

JUPITER is a governance-oriented microservice framework, which is being used for years at Douyu.

Documentation

See the 中文文档 for the Chinese documentation.

Quick Start

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 {
		return nil
	}))
	return cron
}

More Example:

Bugs and Feedback

For bug report, questions and discussions please submit an issue.

Contributing

Contributions are always welcomed! Please see CONTRIBUTING for detailed guidelines.

You can start with the issues labeled with good first issue.

Contact

  • DingTalk:
  • Wechat:

主要指標

概覽
名稱與所有者douyu/jupiter
主編程語言Go
編程語言Shell (語言數: 5)
平台
許可證Apache License 2.0
所有者活动
創建於2020-02-27 12:50:47
推送於2025-05-26 15:25:55
最后一次提交2025-01-17 10:47:11
發布數76
最新版本名稱v0.11.19 (發布於 )
第一版名稱v0.1.0 (發布於 )
用户参与
星數4.5k
關注者數95
派生數706
提交數881
已啟用問題?
問題數211
打開的問題數0
拉請求數633
打開的拉請求數6
關閉的拉請求數316
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?